Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: How to reference a nested anonymous array

by dmmiller2k (Chaplain)
on May 29, 2002 at 05:19 UTC ( #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? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2023-09-23 17:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?