Nathan Wiger <[EMAIL PROTECTED]> writes: >> Um, what stops open returning undef on failure (and setting $!), so I could do >> >> $fh = open $filename or die "open $filename failed: $!\n"; > >Exactly. You don't lose anything because open() will still return "true" >(a handle) or "false" (undef). You loose one little thing - you have a new scalar (the handle) with open $fh,$filename one can re-use an existing thing to which someone else may have a reference. (Not that that is useful very often.) -- Nick Ing-Simmons
- Re: RFC: Filehandle type-def... Nathan Wiger
- Re: RFC: Filehandle type-def... Ted Ashton
- Re: RFC: Filehandle type-def... Johan Vromans
- Re: RFC: Filehandle type-def... Tom Christiansen
- Re: RFC: Filehandle type-def... Ted Ashton
- Re: RFC: Filehandle type-def... Bart Lateur
- Re: RFC: Filehandle type-def... Ted Ashton
- Re: RFC: Filehandle type-def... Nathan Torkington
- Re: RFC: Filehandle type-def... Peter Scott
- Re: RFC: Filehandle type-def... Nathan Wiger
- Re: RFC: Filehandle type-def... Nick Ing-Simmons
- Re: RFC: Filehandle type-def... Jonathan Scott Duff
- Re: RFC: Filehandle type-definin... Piers Cawley
- Re: RFC: Filehandle type-defining pun... Simon Cozens
- Re: RFC: Filehandle type-definin... Tom Christiansen
- Re: RFC: Filehandle type-def... Ted Ashton
- Re: RFC: Filehandle type-def... Peter Scott
- Re: RFC: Filehandle type-def... Larry Wall
- Re: RFC: Filehandle type-def... John Porter
- Re: RFC: Filehandle type-def... Tom Christiansen
- Re: RFC: Filehandle type-defining punctuation Steve Simmons