"Chas. Owens" <chas.ow...@gmail.com> writes: >> Or do I have to analyze each file with stat or something? > snip > > In the end, someone has to stat each file, but you should be able to > get what you want like this: > > my @files = > map { $_->[1] } > sort { $b->[0] <=> $a->[0] } > map { -f $_ ? [-M _, $_] : () } > <*>;
[...] (NOTE: I sent a near indentical (to this) reply but never saw it arrive. I hope this doesn't end up a duplicate. -ed HP) Very nice, I really appreciate your full and thorough answer with backup documentation and nice bit of documentation of your own making. I'm sorry to admit I will need some time and careful study to really understand your comments and the related URLS. I have a seriously thick skull problem... takes me a lot of effort to get a grip on some kinds of (usually) abstract thinking. An example: Some yrs ago when I first started playing around with shell code and awk it took me a very long time to finally get even the basic idea of what an array is. Even that level of abstraction was a hard reach for me. But of course you can't help with the skull density factor.... hehe. However you can a did supply a huge leg up with your full explanation. I may not fully understand this mapping business (yet) but that didn't stop me from being able to put your example to work immediately in the current scripting effort. Thank you -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/