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

Re: [Fun With Perl] How to swap $p and $q without $tmp




> Or:
>     ($p,$q) = ($q,$p);
> perhaps clearer. One of my favorite Perl-only idioms...

Well, not really Perl-only; any language that can assign to and from
lists can do the same thing.

John Porter


==== Want to unsubscribe from this list? (Don't you love us anymore?)
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org