Skip to content

Instantly share code, notes, and snippets.

@timo
Last active August 15, 2016 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/9036c265cebe28765a8ebda6624eceb3 to your computer and use it in GitHub Desktop.
Save timo/9036c265cebe28765a8ebda6624eceb3 to your computer and use it in GitHub Desktop.
timo@schmetterling /tmp [1]> perl6 heredoc_mistake.txt
===SORRY!===
Variable '$bar' is not declared
at /tmp/heredoc_mistake.txt:7
------> sub test(⏏$bar) { }
Other potential difficulties:
Ignored the heredoc delimiter 'EOF' earlier, because there was some garbage before the end-of-line: ';'.
at /tmp/heredoc_mistake.txt:5
------> <BOL>⏏ EOF;
timo@schmetterling /tmp [1]> cat heredoc_mistake.txt
say qq:to/EOF/;
Hey
how
are you?
EOF;
sub test($bar) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment