From: Harry Putnam <[EMAIL PROTECTED]>
> I wasn't able to really understand perldoc -f warn.
>
> I'm doing
> use File::Find;
> open(FILE,"<$File::Find::name")or warn "blah blah: $!";
>
> Two things I'm unsure of:
>
> 1) is the `: $!' meaningfull here?
> 2) do I need a `next;' following to make `File::Find' go on to the
> next found file?
>
> If so, how do I let the `next' know that open has failed?
> That is, how do I test exit status of open function? Is it just as in
> shell programing ($?)?
open(FILE,"<$File::Find::name")
or warn "blah blah: $!" and next;
Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>