It works fine majority of the time. However, if the file has been removed but the name still exists in @tmparray I get the error below@tmparray = sort { -M "$b" <=> -M "$a" } (@tmparray);
How can I test if the file exist before getting modification time and remove the entry from @tmparrayUse of uninitialized value in numeric comparison (<=>) at ...
In reply to Sort by -M by roperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |