Created
November 6, 2012 16:06
-
-
Save nihen/4025695 to your computer and use it in GitHub Desktop.
perl inline
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
perl -MO=Deparse hoge.pl | |
# インライン展開される組 | |
sub inline_q() { | |
q{myline} | |
} | |
sub inline_qq() { | |
qq{myline} | |
} | |
sub inline_hearquote() { | |
<<'EOF'; | |
myline | |
EOF | |
} | |
# インラインされない組 | |
sub inline_hear() { | |
<<EOF; | |
myline | |
EOF | |
} | |
sub inline_hearwquote() { | |
<<"EOF"; | |
myline | |
EOF | |
} | |
print inline_q(); | |
print inline_qq(); | |
print inline_hearquote(); | |
print inline_hear(); | |
print inline_hearwquote(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
百歩ゆずってqqもされないならわかる。グローバル変数が中にある可能性があるから。