Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Reading a single column from csv using perl

by MidLifeXis (Monsignor)
on Feb 10, 2014 at 14:12 UTC ( [id://1074243]=note: print w/replies, xml ) Need Help??


in reply to Reading a single column from csv using perl

To echo what marto states above, you do not need both #!perl -w and use warnings. In fact, they do slightly different things.

  • #!perl -w causes warnings to be turned on for the duration of the program, through all included modules, even those not using the warnings pragma. This can generate warnings from modules that you have no control over.
  • use warnings will turn on warnings from the point of the pragma directive until the close of the file, the close of the enclosing block (if included within {...}), or a no warnings pragma directive (subject to scoping rules).

I personally would stick with use warnings and dump the -w from your shebang line.

--MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1074243]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2024-04-23 10:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found