At 03:08 PM 7/15/02 -0400, Nikola Janceski wrote: >Is there any speed difference in this? > >my @crap = map { > map{ s/\.\w+$//; $_ } (glob($_)) > } qw(*.pl *.pgp); > >and > >my @crap = map{ s/\.\w+$//; $_ } map { glob($_) } qw(*.pl *.pgp);
Probably not, but Benchmark.pm is your friend, and the only reliable answer to this. If you're not expecting to execute this a zillion times, it's not likely to make any difference. Use the most readable form (the second one). Always optimize for *programmers'* time first. -- Peter Scott Pacific Systems Design Technologies http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]