From: Nikola Janceski <[EMAIL PROTECTED]>
> (better question) is there a better way to achieve the same result?
>
> > -----Original Message-----
> > From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 15, 2002 3:09 PM
> > To: Beginners (E-mail)
> > Subject: Any difference in this?
> >
> >
> > 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);
Well ... did you try
my @crap = map{ s/\.\w+$//; $_ } glob( '*.pl *.pgp');
seems to work fine for me.
Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
--- me
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]