ForNext
Only Do What Only You Can Do
053. here document
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
$word = "amet"; $s = <<EOF; lorem ipsum dolor sit $word EOF
PHP
$word = "amet"; $s = <<<EOF lorem ipsum dolor sit $word EOF;
Python
none
Ruby
word = "amet" s = <<EOF lorem ipsum dolor sit #{word} EOF