Created
December 1, 2010 02:10
-
-
Save goodside/722810 to your computer and use it in GitHub Desktop.
heredocs
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
i64478@SysEngineering1:~$ perl <<PERL | |
> # Note that there is no need for a -e flag. | |
> print "Helo, world!\n"; | |
> PERL | |
Helo, world! | |
i64478@SysEngineering1:~$ perl -e 'print "Hello, world!\n";' | |
Hello, world! | |
i64478@SysEngineering1:~$ perl 'print "Hello, world!\n";' | |
Can't open perl script "print "Hello, world!\n";": No such file or directory | |
i64478@SysEngineering1:~$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment