... or a loopmy @txt = glob("$dir/*.txt");
When you call glob in a scalar context, it returns the file the first time, then returns nothing the next time to let you know there are no more files.while ( defined(my $txt = glob("$dir/*.txt")) ) { }
In reply to Re: Glob Misbehavin'
by no_slogan
in thread Glob Misbehavin'
by Sprad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |