more on warn .. is next necessary
From: Harry Putnam (reader_at_newsguy.com)
Date: 03/29/04
- Next message: Randy W. Sims: "Re: Incrementing count"
- Previous message: Chris Charley: "Re: date math"
- Next in thread: John W. Krahn: "Re: more on warn .. is next necessary"
- Reply: John W. Krahn: "Re: more on warn .. is next necessary"
- Reply: Jenda Krynicky: "Re: more on warn .. is next necessary"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Mon, 29 Mar 2004 12:16:12 -0600
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 ($?)?
- Next message: Randy W. Sims: "Re: Incrementing count"
- Previous message: Chris Charley: "Re: date math"
- Next in thread: John W. Krahn: "Re: more on warn .. is next necessary"
- Reply: John W. Krahn: "Re: more on warn .. is next necessary"
- Reply: Jenda Krynicky: "Re: more on warn .. is next necessary"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]