[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[FWP] Mystical @_ in subs



>From vlb@cfcl.com  Thu Nov 18 08:22:57 1999
>Sorry for the delay; (The list filter caught the word 'sub'
> this being a Perl list, I think I had better turn that off :-) - vlb

sub swap { @_ = @_[1,0] } # doesn't work, but
sub swap { @_[1,0] = @_ } # does.

Not that that's news to any of us,
but it's still kinda fun.

-- 
John Porter

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe