Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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.

Replies are listed 'Best First'.
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?
[Discipulus]: Tanktalus my comment was about how to fork & join in tk?
[marioroy]: Oh, I've might of missed Discipulus's earlier response. I had gone to bed.
[Tanktalus]: ah, I don't even have the perlmonks site open in my browser :)
Tanktalus is chatting through his cbstats application :)
[marioroy]: Perl is so much fun.
[Discipulus]: Tanktalus i recently started a Meditation about marioroy's MCE suit of modules, but is even better to see a practical question answered than responses to my meditation
[Discipulus]: good night mario!
[Tanktalus]: yeah, I saw you post about MCE - the concept looks really really cool. I wonder how well it plays with Coro :)
[Lady_Aleena]: Hi guys. I asked this earlier but got no answer. Why is this dying at -exec: my @music_times = qx(find ~/Music/Albums/ -type f -iname '*.mp3' -exec mp3info -p "%S\n" {} \;);
[Lady_Aleena]: The error find: missing argument to `-exec'

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-04-23 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.