On Mon, Oct 06, 2003 at 05:06:55PM +0100, Nick Ing-Simmons wrote: > Abigail <abigail@abigail.nl> writes: > >The first sentence of 'perldoc -f ref' is wrong: > > > > Returns a true value if EXPR is a reference, false otherwise. > > > >To wit: > > > > $ perl -wle 'print ref bless [] => 0' > > 0 > > I would be tempted to make that bless illegal. I second that tempation. If the above is legal then this very common idiom is no longer correct: print "$r is not a reference" unless ref $r; And I'm not about to go around patching everything to say: print "$r is not a reference" unless length ref $r; just so someone can have their Acme module.Thread Previous | Thread Next