Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: help reassigning hash with arrayref

by mhearse (Chaplain)
on Nov 16, 2011 at 00:07 UTC ( #938285=note: print w/replies, xml ) Need Help??


in reply to Re^3: help reassigning hash with arrayref
in thread help reassigning hash with arrayref

Thanks. You are correct. But I'm still have an issue with the array being assigned in scalar context.
  • Comment on Re^4: help reassigning hash with arrayref

Replies are listed 'Best First'.
Re^5: help reassigning hash with arrayref
by Anonymous Monk on Nov 16, 2011 at 02:34 UTC

    Thanks. You are correct. But I'm still have an issue with the array being assigned in scalar context.

    Um, what?

    If you don't want to make a copy, like Grandfather showed here, then simply copy the reference , meaning, forget about dereferencing.

    If that doesn't make sense, then show as asked, the data structure you're trying to create, the same way you showed your input data structure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938285]
help
Chatterbox?
[MidLifeXis]: heh.
[MidLifeXis]: Most likely it is a code that some undocumented system, hidden behind layers of IT, deep in the bowels of the building under the machine room floor, reads that code to keep a presence switch from going off. :-b
[MidLifeXis]: I think I forgot "running on a farm of commodore 64, vic 20s, trs 80s, and apple ]|[e systems"
[GotToBTru]: oh I know what it is .. but it is a number only slightly useful to me and of no possible use to our customer
[MidLifeXis]: Whew - you just saved the free world. <o)
[GotToBTru]: i guess it's a placeholder, the code will only fill it in if there is nothing else to use
[GotToBTru]: but then .. if you have nothing to say, why not say nothing?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2017-01-20 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (176 votes). Check out past polls.