Top "Heredoc" questions

A Here-document is a special syntax of writing literal strings in sourcecode, used by different programming languages.

/dev/stdin with herestring

I would like a Bash script that can take input from a file or stdin, much like grep, for example $ …

bash cygwin stdin heredoc
Can't find string terminator "str" anywhere before EOF

Why I get this error? use strict; use warnings; my $str = <<str; 88087 23/11/2010 35192 25/07/2010 B3J 5X9 17/08/2011 C8U 5L6 16/08/2011 …

perl string syntax heredoc
PHP heredoc parse error

This produces output page OK $mystring = "<<<EOT"; Replacing it with the following produces Parse error: syntax error, …

string php heredoc
Can I access a variable within a heredoc in Ruby?

If I have a method def some_method p = {} string = <<-MY_TERMINATOR Example text blah blah lorem ipsum …

ruby string heredoc
HEREDOC interfering with code indentation

I like the HEREDOC syntax, e.g. for edge cases of generated HTML that are not worth putting into a …

php heredoc
python -c vs python -<< heredoc

I am trying to run some piece of Python code in a Bash script, so i wanted to understand what …

python bash heredoc
Is it possible to concatenate heredoc string in PHP..?

With normal PHP string you can do this: $str = "Hello "; $str .= "world"; $str .= "bla bla bla"; $str .= "bla bla bla..."; …

php string string-concatenation heredoc
Multiple Line String Literal in Actionscript 3

How do you specify a multiple line string literal in Actionscript 3? Multiline String Literal in C# Note that this is …

string actionscript-3 heredoc
Parse error: syntax error, unexpected T_SL PHP heredoc

I keep getting the following error: Parse error: syntax error, unexpected T_SL in /home/a4999406/public_html/willingLog.html …

php heredoc
What is the best way to have long string literals in Javascript?

Possible Duplicate: Multiline strings in Javascript In Ruby you can do something like this: temp = <<-SQLCODE select * from …

javascript ruby-on-rails ruby heredoc