i want to optimize this piece of code. is there some way i can do thisopendir( DIR, '.' )||die "Can't open $dir"; my(@filenames)=readdir ( DIR ); closedir ( DIR ); @filenames=sort {$a cmp $b} @filenames;
In reply to how to do effective sort in perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |