Joe Smith <> wrote in message news:<GeU1d.438135$%_6.292304@attbi_s01>...
> PilotMI80 wrote:
>
> > When trying to access a USB key with :
> >
> > foreach(<$path/*>)
> > (or any combination of quotes )
>
> That is guaranteed to fail if $path contains spaces in the name,
> like "e:/My Files". As you've seen, readdir() does not have
> that problem.
> -Joe
thanks for your try, i have to be a bit more precise so you can answer
well
By "any combination of quotes", I meant white spaces were not the pb
cause I actually use "$path"/* :
For my tests I copied part of the hierarchy so that replacing the
drive letter has no incidence on the structure.
if $path is c:/foo, it works ok but if $path is f:/foo, it doesn't.
I guess there's a pb with the buffering with the key.
(I use Perl 5.6)
I can keep on with opendir but the con is that I need a global handle
for each.
thx
|