Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^3: Looking for pointers or optimizations.

by hbm (Hermit)
on Aug 21, 2012 at 15:59 UTC ( #988785=note: print w/replies, xml ) Need Help??

in reply to Re^2: Looking for pointers or optimizations.
in thread Looking for pointers or optimizations.

I very recently encountered a spurious(?) error message (on v5.8.2):

Use of uninitialized value in substitution (s///) at (eval 2) line 21

Which resulted from the addition of one line like this:

$hash{$var1}{'string'} = $var2;

I confirmed that the variables were defined, and that the hash entry was created. I then tried:

{ no warnings 'uninitialized'; # and later: no warnings; $hash{$var1}{'string'} = $var2; }

To no avail. Curiously, the error wasn't occurring at that line (confirmed with print statements); but it disappeared if I commented out that line.

Removing -w got rid of the error.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2016-10-23 02:05 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (299 votes). Check out past polls.