Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Looking for pointers or optimizations.

by hbm (Hermit)
on Aug 21, 2012 at 15:59 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-25 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found