Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: xs modifying passed value

by bulk88 (Priest)
on Nov 18, 2012 at 07:43 UTC ( #1004381=note: print w/replies, xml ) Need Help??


in reply to Re^2: xs modifying passed value
in thread xs modifying passed value

Some people for param lists do,
my %localdog; if(@_ == 2 && ref($_[1]) eq 'HASH') { #named params my $hvref = $_[1]; $localdog{name} = $hvref->{name}; $localdog{color} = $hvref->{color}; } else{ $localdog{name} = $_[1]; $localdog{color} = $_[2]; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004381]
help
Chatterbox?
[Corion]: talexb: Well, low end for desktops :-D
[marto]: hey jedikaiti

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-07-27 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (418 votes). Check out past polls.