Date: 13 Jul 2001 04:12:08 -0500 From: logan@cs.utexas.edu (Logan Shaw) Subject: Re: List files in a directory Message-Id: <9ime18$km8$1@charity.cs.utexas.edu> In article <9imd8n$fav$1@kermit.esat.net>, Andrew wrote: >for (0..$#files) >{ > printf "$files[$_]\n"; >} That's not really very much in the Perl idiom. It's much more natural to just do this: foreach (@files) { print "$_\n"; } That is precisely what "foreach" is for, after all. Personally, I like this better, though: print map ("$_\n", @files); - Logan -- my your his her our their _its_ I'm you're he's she's we're they're _it's_