Welcome to the Monastery | |
PerlMonks |
Re: can substitution operator replace text with value returned from function?by Paladin (Vicar) |
on Jun 11, 2018 at 16:56 UTC ( [id://1216410]=note: print w/replies, xml ) | Need Help?? |
You can use the /e modifier to s/// to execute the RHS and use the return value as the substitution value.
In Section
Seekers of Perl Wisdom
|
|