Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: what would you like to see in perl5.12?

by blazar (Canon)
on Aug 26, 2007 at 14:39 UTC ( #635132=note: print w/replies, xml ) Need Help??

in reply to what would you like to see in perl5.12?

Another late addition from a previous idea: bring some functionality from Scalar::Util into core ref by having the latter return, in list context, respectively: REF, ADDR, BLESSED, where

  • REF would be ref()'s current output if the reference is not blessed, and if it is then the same as if it were not,
  • ADDR the same as refaddr()'s and
  • BLESSED the package the reference is blessed in, if it is, or undef otherwise.

Replies are listed 'Best First'.
Re^2: what would you like to see in perl5.12?
by ysth (Canon) on Aug 26, 2007 at 19:51 UTC
    Hmm. Not sure that would be worth it, given the possibility of foo(ref($bar), "baz"), etc.

      Yes you're perfectly right. One should see how much existing codebase is affected. Perhaps it should have been there from start. In any case I can see that p5p would hardly risk even if they found the feature as desirable as I do. But... if that's "what I would like to see in Perl (5.12)" ... well, this is one such thing!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://635132]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-02-19 16:46 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (293 votes). Check out past polls.