develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [PATCH pod/perlfunc.pod] ref can return false on references

Thread Previous | Thread Next
From:
Nick Ing-Simmons
Date:
October 6, 2003 09:07
Subject:
Re: [PATCH pod/perlfunc.pod] ref can return false on references
Message ID:
20031006160655.2483.11@llama.elixent.com
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.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About