Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Autovivification sucking the life out of me

by shenme (Priest)
on Oct 14, 2005 at 18:04 UTC ( #500338=note: print w/replies, xml ) Need Help??

in reply to Re^2: Autovivification sucking the life out of me
in thread Autovivification sucking the life out of me

Wow, thanks for the examples. It would seem "simple usage" is not what people would assume it is. I will go file a bug report against PathTools, but it may be instructive to see how easy it is to fall into this trap. Here is the line of code in that caused me all the grief:
$tmpdir = $_[0]->_tmpdir( @ENV{qw(TMPDIR TEMP TMP)}, 'SYS:/temp', 'C:\system\temp', 'C:/temp', '/tmp', '/' );
Sure looks innocent, huh? Of course the 'fix' will be to change the references to 'simple' ones,
$tmpdir = $_[0]->_tmpdir( $ENV{TMPDIR}, $ENV{TEMP}, $ENV{TMP},

And in answer to Skeeve, yes, I am a "bug-magnet"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://500338]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2018-03-19 17:27 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (245 votes). Check out past polls.