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

Re: call sub in string

by axelrose (Scribe)
on Feb 17, 2002 at 22:15 UTC ( #146052=note: print w/replies, xml ) Need Help??


in reply to call sub in string

Perl6 will provide an easier way to achieve this by:
"$(function_$i)"
I would anyway suggest to code this better as:
for ( 1..2 ) { function( $i ) }
and process the different values in the function.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2023-11-30 08:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?