Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by tye (Sage)
on Dec 13, 2008 at 20:19 UTC ( [id://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        

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found