Created
May 26, 2012 15:44
-
-
Save ynonp/2794368 to your computer and use it in GitHub Desktop.
indented heredoc example
This file contains hidden or 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
############################################# | |
#!/usr/intel/bin/perl | |
my $line1 = <<"DONEDONE"; | |
yuval yuval yuval | |
DONEDONE | |
print $line1; | |
sub func { | |
my $line2 = <<"DONEDONE"; | |
yuval yuval yuval | |
DONEDONE | |
} | |
&func(); | |
############################################# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment