in reply to IO::Dir confusing behaviour
I would think that the "works" cases are actually when the tie fails. You should check for that case:
- tye (but my friends call me "Tye")if( ! tie %arquivos, IO::Dir, $folder ) { print "Can't read directory ($folder): $!\n"; } else { # ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re: IO::Dir confusing behaviour
by DaWolf (Curate) on Nov 21, 2001 at 23:14 UTC |