Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Autoboxing by subclassing CORE

by choroba (Canon)
on Jun 20, 2012 at 21:19 UTC ( #977474=note: print w/ replies, xml ) Need Help??


in reply to Autoboxing by subclassing CORE

What version of Perl is needed to make it run? I am getting

Can't locate object method "substr" via package "String" at - line 20.
in 5.14.2.


Comment on Re: Autoboxing by subclassing CORE
Download Code
Replies are listed 'Best First'.
Re^2: Autoboxing by subclassing CORE
by tobyink (Abbot) on Jun 21, 2012 at 00:57 UTC

    I'm using 5.16. perl5160delta notes various improvements to the CORE and CORE::GLOBAL namespaces. Perhaps in earlier Perls CORE::substr doesn't work, but some other interesting CORE functions are likely to work.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (16)
As of 2015-07-30 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls