Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: How to reference a nested anonymous array

by dmmiller2k (Chaplain)
on May 29, 2002 at 05:19 UTC ( [id://169982]=note: print w/replies, xml ) Need Help??


in reply to Re: How to reference a nested anonymous array
in thread How to reference a nested anonymous array

Note that

$aref=\@{$fileinfo{$md5hash}{path}}

dereferences the array and then creates another reference to it. Preferable might be:

$aref=$fileinfo{$md5hash}{path}

i.e., don't dereference the array at all, just assign its reference to a scalar for simplicity, readability and maintainability.

dmm

If you GIVE a man a fish you feed him for a day
But,
TEACH him to fish and you feed him for a lifetime

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-25 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found