develooper Front page | perl.perl5.porters | Postings from December 2015

Re: Proposal: Add {-as => 'new_name'} feature to

Thread Previous | Thread Next
December 18, 2015 01:35
Re: Proposal: Add {-as => 'new_name'} feature to
Message ID:
On 18 December 2015 at 01:58, Chad Granum <> wrote:
> I have no objections to using reftype, except that it returns undef on
> non-refs which makes the conditional more complicated.

ref($foo) and reftype($foo) eq "HASH"

> Also I would be
> pretty surprised if someone passed in a blessed ref to change the name of a
> sub..

On second thought, you are probably right. Might as well wait to see
if someone files a bug report.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About