is there a quick way to exchange the values of two vars without using a third one?
($x,$y)=($y,$x);
Just don't try this with anything but scalars :-)
The Sidhekin
print "Just another Perl ${\(trickster and hacker)},"
In reply to Re: Lost when exchanging values
by Sidhekin
in thread Lost when exchanging values
by Sigmund
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |