in reply to Re: simple script question scope/structure for Perl noob
in thread simple script question scope/structure for Perl noob

Well, at least use strict; I would think the warnings part would be covered by the #!/usr/bin/perl -w line.

    -Bryan

Replies are listed 'Best First'.
Re^3: simple script question scope/structure for Perl noob
by polettix (Vicar) on Jun 26, 2005 at 22:20 UTC
    In this case, I'd put use warnings anyway. Note that OP's shabang does not start from the very first character in the script, because there are some lines of comment before (and an empty one, too). Thus, the -w switch is likely to be ignored in this case.

    Flavio
    perl -ple'$_=reverse' <<<ti.xittelop@oivalf

    Don't fool yourself.
Re^3: simple script question scope/structure for Perl noob
by GrandFather (Saint) on Jun 26, 2005 at 22:20 UTC

    My eye skipped over it. Can't even blame coffee lack :^(


    Perl is Huffman encoded by design.