Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Complex Data Structure Suggestions Wanted

by tlm (Prior)
on Jun 07, 2005 at 11:17 UTC ( #464236=note: print w/replies, xml ) Need Help??


in reply to Complex Data Structure Suggestions Wanted

You don't need the exists test; perl will autovivify to DWYM, so the first branch of your test actually works for both conditions. And if you want to use "indirect" (arrow?) notation, then:

push @{$HashRef->{$ItemID}}, $DataSource;
BTW, I could be all wrong on this, but I think that the term "indirect notation" is typically used to refer to stuff like
my $obj = new Thingie;
as opposed to
my $obj = Thingie->new();

the lowliest monk

Replies are listed 'Best First'.
Re^2: Complex Data Structure Suggestions Wanted
by Ninthwave (Chaplain) on Jun 07, 2005 at 12:17 UTC

    You are correct on the indirect definition an dit is defined at least in the above mention book as indirect object notation. I wonder what the Nomenclature the ->. Something interesting to look up while researching.

    Thank you your notation makes the most sense in one line for what I was trying to do. And I didn't even want to play golf with it ;)

    "No matter where you go, there you are." BB

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-11-25 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?