i've been playing with -F and getting stuck. i have a script looking like
#!/usr/bin/perl -naF// print "$#F\n"; it should print the length of each line of the passed file. running it as $ echo "word" | ./F 4 works. but if i run it as $ echo "word" | perl F syntax error at F line 2, near "print" Execution of F aborted due to compilation errors. i've read perlrun many times, and played around with the #! line, but i can't get it to work if called using the second method. is someone able to explain what's going on, please? begin-base64 600 signature.gif R0lGODlhbQAHAIAAAABPo////ywAAAAAbQAHAAACfAxuGAnch+Bibkn7FL1p XgVl4Ig1jjlZRoqybgun2Cur5uOunq7u/Ipq7WIyIc7XG9JquEgumPzdlhTf h0O83kDJaXEm8mRHwXKJy5sac7qYOpT+gtv0n+0ujQOfdqh16caWt0foBViH N1PRMXimiLUGt3ElVimlgbllWAAAOw== ====