On Sun, 13 Nov 2005 22:47:05 -0500, Tom Allison wrote: > 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
Only if you're using a Perl from the last millennium. Starting with version 5.6.0, glob() no longer calls out to csh and does not have the same limitations. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>