>Jeff Pang wrote: > >: my @original=(...); >: my @sort=sort {$a cmp $b} @original; >: print Dumper @sort; > > You might like the results better using an array reference. > >print Dumper [EMAIL PROTECTED]; >
Sorry,my mistake.It's right really to use an array reference here. -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>