[Israel.pm] swap arrays

Yossi.Itzkovich at ecitele.com Yossi.Itzkovich at ecitele.com
Mon Feb 16 19:00:26 PST 2004


I don't know.  but it's a kind of movie


                                                                                                                                   
                      Yossi.Itzkovich@                                                                                             
                      ecitele.com              To:      Perl in Israel <perl at perl.org.il>                                          
                      Sent by:                 cc:                                                                                 
                      perl-bounces at per         Subject: [Israel.pm] swap arrays                                                    
                      l.org.il                                                                                                     
                                                                                                                                   
                                                                                                                                   
                      02/16/2004 15:58                                                                                             
                      Please respond                                                                                               
                      to Perl in                                                                                                   
                      Israel                                                                                                       
                                                                                                                                   
                                                                                                                                   




Hi,

Is there an **elegant** way of swapping arrays in Perl ?

I call "elegant", the way we swap scalars:
 ($a,$b)=($b,$a);

Yossi

_______________________________________________
Perl mailing list
Perl at perl.org.il
http://www.perl.org.il/mailman/listinfo/perl

YAPC::Israel::2004
http://www.perl.org.il/YAPC/2004/







More information about the Perl mailing list