Harry Putnam wrote:
> 
> 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?

Yes.


> 2) do I need a `next;' following to make `File::Find' go on to the next
> found file?

Use 'return' to exit from the sub and go on to the next 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?

open() returns true on success and undef (false) when it fails.


> Is it just as
> in shell programing ($?)?

No.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to