I discovered yesterday that it is impossible to read the __DATA__ section when your script comes via -e from the command line. Is this a fact or am I just missing something?
Example:
$ perl -e 'print <DATA>,; __DATA__ example data '
I'm calling the perl script from AppleScript so this is the reason why I use -e. When I use <<< instead of -e it works fine, but then I can't use STDIN in my script to read other input.
In reply to 'perl -e' and '__DATA__' What's wrong? by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |