The $ perl -le ... indicates that this is a command typed at the command line (as a demo), not something you should simply copy & paste into your script as a whole line - the code is inside the single quotes after the -e switch here (see also perlrun).
In reply to Re^3: Using eval: $@ isn't returning the error I expect
by haukex
in thread [SOLVED] Using eval: $@ isn't returning the error I expect
by doctormelodious
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |