Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Warnings:

by ariels (Curate)
on Jun 08, 2002 at 08:12 UTC ( #172751=note: print w/ replies, xml ) Need Help??


in reply to Uninitialized value in string warnings (was: Warnings:)

Apart from using diagnostics to print out longer error messages, you can also use the "program" version of diagnostics, called "splain". Just pipe your error messages to <samp>splain</samp>, or paste them into its standard input, or whatever.

Here's how it works:

#&91;ariels@HumptyDumpty ariels]$ splain 
/usr/bin/splain: Reading from STDIN
Use of uninitialized value in string at script.pl line 14.
Use of uninitialized value in string at script.pl line 14 (#1)
    
    (W uninitialized) An undefined value was used as if it were already defined.  It was
    interpreted as a "" or a 0, but maybe it was a mistake.  To suppress this
    warning assign a defined value to your variables.


Comment on Re: Warnings:
Re: Re: Warnings:
by Anonymous Monk on Jun 08, 2002 at 09:12 UTC

    Thanks. Splain is great! Saves much manual searching of the perldiag docs (which on Win32 system with the standard more is less than useful).

    Anyone have an existing perl script that improves on the standard Win32 more? <p.Shouldn't be hard to write in Perl to get something that goes backward as well as forwards and has a decent (or even primative!) search facility - but if anyone has one existing I'd be grateful.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-08-20 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (109 votes), past polls