Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Shift versus Sanity (shift is not like assignment from @_)

by Anonymous Monk
on May 01, 2002 at 13:27 UTC ( #163258=note: print w/replies, xml ) Need Help??


in reply to Re: Shift versus Sanity (shift is not like assignment from @_)
in thread Shift versus Sanity

If you want to modify it you must fetch the parameter

I don't know if you include this in "fetch". Technically you might fetch, but I wouldn't like to call it fetching the parameter(s).

sub foobar { @_ = @_; $_[0] =~ s/foo/bar/; $_[0]; }
Cheers,
-Anomo
  • Comment on Re: Re: Shift versus Sanity (shift is not like assignment from @_)
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2020-11-27 19:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?