* Do I always/never have to quote my strings or use semicolons and commas?
+ the examples are more closely related to single quoting since interpolation doesn't happen in these instances. * What does "bad interpreter" mean? + added note that this warning may come from line-end problems Index: perlfaq7.pod =================================================================== RCS file: /cvs/public/perlfaq/perlfaq7.pod,v retrieving revision 1.21 diff -u -d -r1.21 perlfaq7.pod --- perlfaq7.pod 21 Jan 2005 12:10:22 -0000 1.21 +++ perlfaq7.pod 11 Mar 2005 16:38:51 -0000 @@ -54,8 +54,8 @@ This is like this ------------ --------------- - $foo{line} $foo{"line"} - bar => stuff "bar" => stuff + $foo{line} $foo{'line'} + bar => stuff 'bar' => stuff The final semicolon in a block is optional, as is the final comma in a list. Good style (see L<perlstyle>) says to put them in except for @@ -905,7 +905,10 @@ right path to perl (or any other program capable of running scripts). Sometimes this happens when you move the script from one machine to another and each machine has a different path to perl---/usr/bin/perl -versus /usr/local/bin/perl for instance. +versus /usr/local/bin/perl for instance. It may also indicate +that the source machine has CRLF line terminators and the +destination machine has LF only: the shell tries to find +/usr/bin/perl<CR>, but can't. If you see "bad interpreter: Permission denied", you need to make your script executable. -- brian d foy, [EMAIL PROTECTED]