Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^2: seeking in hash data structure

by Maze (Sexton)
on Oct 26, 2006 at 21:16 UTC ( #580832=note: print w/replies, xml ) Need Help??

in reply to Re: seeking in hash data structure
in thread seeking in hash data structure

the reason just plonking in a new value using perls syntax instead of rolling our own funtion is the same reason that you would create any function, so that it becomes adaptable. My original idea was to create something that would record a file hierachy in a hash, probably a bad idea, but in any case it's not something you can do using value declarations, not even symreferencesm, because as someone has said they're anonymous

\$hashref = $%hashref{foobar}
is very wrong yes, because I was getting confused with the making and dereferencing of references at the same time, I know this now after having every perl program that included the above method crashing spectacularly

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-05-19 03:19 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (71 votes). Check out past polls.