Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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.


Comment on Re^3: Looking for pointers or optimizations.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-07-31 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls