Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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?


Replies are listed 'Best First'.
(tye)Re: references quick reference (Re: push)
by tye (Sage) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69199]
[Discipulus]: yees.. masonry, shaving of the ceiling (dunno if shaving is the right term..) 20hours in the weekend.. so veery good ;=)
[LanX]: yes I worked ...
[LanX]: ... and hope to get a free work day in compensation. :)
choroba went to a museum with the older children. The exhibition was called "American Indians".
[Discipulus]: this and...
[Discipulus]: shaving the ceil

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2018-02-19 10:26 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (261 votes). Check out past polls.