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

Re^2: Replace Hash-Ref with Array-Ref

by Anonymous Monk
on Nov 08, 2012 at 09:57 UTC ( #1002859=note: print w/replies, xml ) Need Help??


in reply to Re: Replace Hash-Ref with Array-Ref
in thread Replace Hash-Ref with Array-Ref

Thanks! Technique, the first was exactly what I was looking for.

I think I'll read a bit more about @_.

Replies are listed 'Best First'.
Re^3: Replace Hash-Ref with Array-Ref
by Anonymous Monk on Nov 11, 2012 at 08:00 UTC

    Mind you, it's far from kosher to have functions that mess with its arguments. You save, what, five characters each function call? Try to do it how brx suggested.

    sub bazify { my ($bar) = @_; return $bar->{baz}; } $ref = bazify($ref);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002859]
help
Chatterbox?
SuicideJunkie replaces stale cookies with fresh on the platter on the sideboard.
[SuicideJunkie]: So, possibly interesting thing; I had that script which was using more than all the ram to open an absurdly large spreadsheet. I set it up to spin overnight nightly, so it stopped releasing memory since it was never fully exited.
[SuicideJunkie]: Didn't expect that to be a problem. There's plenty of disk space for swap, and the memory space would be reused the next day. But apparently virtualbox dies with a guru meditation when there's no physical memory unused on start.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-04-26 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (491 votes). Check out past polls.