Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: OOP: ->Coderef for calling Private Methods (5.6?)

by tye (Sage)
on Dec 13, 2008 at 20:19 UTC ( #730196=note: print w/ replies, xml ) Need Help??

in reply to Re^3: OOP: ->Coderef for calling Private Methods
in thread OOP: Obj->Coderef for calling Private Methods

Perl 5.6 does not have that feature

Testing 5.005_03 shows that even it had the feature of $obj->$code_ref( ... ), despite the 5.6 documentation not mentioning it:

$ perl5.00503 -e '$cr= sub { warn "( @_ )\n" }; "main"->$cr( "bar" )' ( main bar )

- tye        

Comment on Re^4: OOP: ->Coderef for calling Private Methods (5.6?)
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-09-01 09:10 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (368 votes), past polls