Gustav Wiberg wrote:
Hi again!

If I understood it right...

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

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


Usually.
If there are a lot of files in the directory, this will file.
About the same time that the shell command 'rm' or 'ls' will faile if you do:

rm  *.txt
for F in `ls *.txt`; do

Rare?
But I've seen it enough to consider just how many files I'm expecting.
I don't know the real number necessary to have this fail: could be 10^3 or 10^4.

--
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