SPUG: Re: scalar swap challenge (SPOILER!)

ced at carios2.ca.boeing.com ced at carios2.ca.boeing.com
Wed Oct 8 18:55:17 CDT 2003


> my @stack;

> unshift @stack, $a;
> unshift @stack, $b;
> $a = shift @stack;
> $b = shift @stack;

Cool...  

a slight variant: 


  push @ARGV,$y,$x;
  ($y,$x)=(pop,pop); 

--
Charles DeRykus



More information about the spug-list mailing list