Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: use warnings => Use of uninitialized value...

by ioannis (Prior)
on May 24, 2006 at 09:05 UTC ( #551305=note: print w/replies, xml ) Need Help??


in reply to use warnings => Use of uninitialized value...

You asked the question; you don't deserve a lecture.

The answer is you can disable unwanted warnings by coding, possibly in a block, with the no warnings 'once' syntax. This disables the 'once' warning. But you did not want to disable the 'once' warning, you wanted to disable another warning whose name you do not know! Than is usually the case.

Simple, aim your browser to the warnings.h file (mine is at /usr/lib/perl/5.8.7/CORE/warnings.h ), then guess the name of the warning from the definitions.

  • Comment on Re: use warnings => Use of uninitialized value...

Replies are listed 'Best First'.
Re^2: use warnings => Use of uninitialized value...
by Corion (Pope) on May 24, 2006 at 09:10 UTC

    Why so complicated?

    The perldoc warnings command points to the perllexwarn documentation, which lists the warnings and how to get rid of them.

Re^2: use warnings => Use of uninitialized value...
by gellyfish (Monsignor) on May 24, 2006 at 09:10 UTC

    Simple, aim your browser to the warnings.h file (mine is at /usr/lib/perl/5.8.7/CORE/warnings.h ), then guess the name of the warning from the definitions.

    Er, rather than guessing the OP is almost certainly better off looking in the perllexwarn documentation which explains all the categories of warnings.

    /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://551305]
help
Chatterbox?
[afoken]: DBD::CSV has a csv_class attribute. You could subclass Text::CSV_XS to handle BOMs, e.g. through File::BOM.
[ELISHEVA]: Text::CSV_XS already can handle boms - see its detect_bom flag
[ELISHEVA]: but it seems that the DBD::CSV layer on top of it doesn't
[afoken]: Also: All other attributes that start with csv_ and are not described above will be passed to Text::CSV_XS (without the csv_ prefix).
[Discipulus]: what about a good 'ol SOPW?
[erix]: Giro d'Italia won by Dumoulin (peccato Nibali)
[ELISHEVA]: csv_detect_bom doesn't work either
[erix]: (SCNR)
[ELISHEVA]: I may have to resort to SOPW - but was hoping that this would be something simple
[erix]: I'd just remove the BOM, it is pretty simple

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2017-05-28 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?