Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: aliasing a hash field

by Sixtease (Friar)
on Feb 15, 2008 at 20:24 UTC ( #668240=note: print w/ replies, xml ) Need Help??


in reply to aliasing a hash field

Yeah, ehm, well, I must have been high on something when I wrote that. :-)

*arr = $h{'key'} is the obvious solution to Y that should have crossed my mind.

$h{'key'}[0,1] may not be invalid syntax but it's definitely not what I meant.

The solution to X is that I simply make a method to set the things I want to show to the subs instead of adding magic to manipulating the object.

My question was totally unclear and I apologize. Seeing that I got helpful and not bashing replies confirms my deep conviction that the Perlmonks community is one of the most mature, tolerant and wonderful communities to ever inhabit the cyberspace.

use strict; use warnings; print "Just Another Perl Hacker\n";


Comment on Re: aliasing a hash field
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-08-20 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (105 votes), past polls