Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: input from STDIN or from a fileby almut (Canon) |
on Jan 28, 2008 at 19:17 UTC ( [id://664751]=note: print w/replies, xml ) | Need Help?? |
I'm not sure you want the dash at the end of the shebang line... It doesn't do any harm when invoking the code like you did, but when I try to run your sample code/data without explicitly calling perl (rather letting the OS handle the shebang), I'm getting
I suppose this is because what comes in through stdin is being interpreted as Perl code, rather than as content to be read via <> ...
In Section
Seekers of Perl Wisdom
|
|