in reply to Re: processing key value pairs of a hash
in thread processing key value pairs of a hash

1) "perl -w" in the she-bang line and "use warnings" are pretty much the same thing (won't hurt of course :-)
Here is the difference, according to warnings:
The warnings pragma is a replacement for the command line flag -w , but the pragma is limited to the enclosing block, while the flag is global. See perllexwarn for more information.
  • Comment on Re^2: processing key value pairs of a hash

Replies are listed 'Best First'.
Re^3: processing key value pairs of a hash
by morgon (Priest) on Apr 14, 2009 at 21:08 UTC
    Don't get your posting...

    I know there is difference that's why I said "pretty much the same" and not "exactly".

    For his case (as he does not seem to want to turn warnings off for a particular lexial scope) it won't make a difference.

    But ok:

    6) Don't use -w, always use warnings so you can turn them off again.

      The reason for my posting was to provide additional, specific information -- in the form of a link to the official Perl documentation -- as to the differences between -w and warnings, mostly for the benefit of the OP (or anyone else who is interested). It is good that you brought this to the attention of the OP.
      Thanks morgon!
Re^3: processing key value pairs of a hash
by lomSpace (Scribe) on Apr 15, 2009 at 13:05 UTC
    Thanks Toolic!