Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: method invocation syntax at perl

by ForgotPasswordAgain (Deacon)
on Jan 03, 2008 at 10:00 UTC ( #660148=note: print w/ replies, xml ) Need Help??


in reply to method invocation syntax at perl

I'm not sure what you mean exactly by "done at single string". I guess you mean all in one line. Normally I'd use what you put there, $method = "something"; $obj->$method($str). It is possible to "embed" the string directly in the call, but it requires not using "strict 'refs'". For that, I'll point you to Symbolic references.


Comment on Re: method invocation syntax at perl
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-07-11 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (217 votes), past polls