On Fri, Jul 20, 2001 at 03:34:41PM -0700, Paul wrote:
> You could say
> 
>    opendir DIR, $ARGV[0] or die $!;
> 
> though that isn't recurseable. Try

What do you mean when you say it isn't recurseable?

 
>   use FileHandle;
>   my $tmpdir = new FileHandle;
>   opendir $tempdir, $ARGV[0] or die "Couldn't open $ARGV[0]: $!";
> 
> (FileHandle objects work for opendir, too, right?)

What, you didn't test the code before posting it?  For shame!  ;)

It does work, but it might impact readability.  There's a DirHandle
module, as well as an IO::Dir module.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to