-alpha- wrote:

> Hi all.
>  
> got some code:
> #! -*- perl -*-
> 
> opendir(DH,'C:\install\_import\Temporary Internet Files') && (@d =
> readdir(DH)) && closedir(DH) && print join("\n",@d);

Try dropping all the &&'s - what are you some kinda shell programmer ?  ;)

use strict;
use warnings;

my $path = 'C:/install/_import/Temporary Internet Files';

opendir DH, $path or die "opendir $path: $! ($^E)";
my @d = readdir DH;
closedir DH;

print "$_\n" foreach @d;

__END__

Does that get the same result ?

Are you sure you didn't want to drill down one more level into Content.IE5 ?

> get this output:
> 
> C:\>pl.pl
> .
> ..
> Content.IE5
> desktop.ini
> C:\>
> 
> I'm pointless why... there is more than 35 000 files. Could anyone
> please give me a hint?
> 
> activeperl 5.8.7.815, winxp sp2
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to