Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Pass by value acts like pass by reference

by davido (Cardinal)
on Jul 11, 2004 at 16:22 UTC ( #373472=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $href = shift;
    for my $key ( keys %{ $href } ) {
        push @{$href->{$key}}, 1;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-02-06 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (33 votes). Check out past polls.

    Notices?