Skip to content

Instantly share code, notes, and snippets.

@goodside
Created December 1, 2010 02:10
Show Gist options
  • Save goodside/722810 to your computer and use it in GitHub Desktop.
Save goodside/722810 to your computer and use it in GitHub Desktop.
heredocs
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