in reply to call sub in string
Perl6 will provide an easier way to achieve this by:
I would anyway suggest to code this better as:"$(function_$i)"
and process the different values in the function.for ( 1..2 ) { function( $i ) }
|
---|
In Section
Seekers of Perl Wisdom