Created
December 16, 2009 10:05
-
-
Save jmblog/257725 to your computer and use it in GitHub Desktop.
ヒアドキュメント
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### ヒアドキュメント(変数展開なし) ### | |
my $text1 = <<'EOS'; | |
aaa | |
bbb | |
ccc | |
EOS | |
### ヒアドキュメント(変数展開あり) ### | |
my $eee = 'eee; | |
my $text2 = <<"EOS" | |
ddd | |
$eee | |
fff | |
EOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment