On Dec 15, Michael Pratt said:
>How can I open several files with this format sn.????.txt where ???? is
>0001 0002 so on and so on?
Use a glob, and use Perl's @ARGV magic:
{
local @ARGV = glob "sn.????.txt";
while (<>) {
# opening each file from @ARGV, one at a time
# $ARGV is the current file you're working with
}
}
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for? <tenderpuss> why, yansliterate of course.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]