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 { # ... }
In reply to (tye)Re: IO::Dir confusing behaviour
by tye
in thread IO::Dir confusing behaviour
by DaWolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |