Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: references quick reference (Re: push)

by a (Friar)
on Apr 03, 2001 at 08:46 UTC ( #69199=note: print w/ replies, xml ) Need Help??


in reply to references quick reference (Re: push)
in thread push

And if I want to ref the entire hash/array (as in a foreach loop) what's the syntax?

foreach my $array_elem ( @{ $href->{$key} } ) {
works (I hope) but shouldn't there be a:
foreach my $array_elem ( $href->{$key}->@ ) {
sort of way to do this?

a


Comment on Re: references quick reference (Re: push)
Select or Download Code
(tye)Re: references quick reference (Re: push)
by tye (Cardinal) on Apr 05, 2001 at 00:52 UTC

    I like the option you describe and I recall patches to implement that making it to p5p but I'm not sure whether they got accepted nor which version of Perl they will appear in.

            - tye (but my friends call me "Tye")

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2015-07-04 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (58 votes), past polls