Hi again!

If I understood it right...

@list = glob('*.txt');

would return all files that ends with *.txt in current directory?

/G
http://www.varupiraten.se/


----- Original Message ----- From: "Randal L. Schwartz" <merlyn@stonehenge.com>
To: <beginners@perl.org>; "Gustav Wiberg" <[EMAIL PROTECTED]>
Sent: Saturday, November 12, 2005 11:10 PM
Subject: Re: Why glob() ?


"Gustav" == Gustav Wiberg <[EMAIL PROTECTED]> writes:

Gustav> Why to use glob()-command when I can use exec() ??? I don't get it...

In modern Perl, glob() is internal, where exec/system/backquote/pipes
are external, so it's very likely faster to use glob, perhaps ten or
one hundred times faster.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to