![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Passing results of a substitution to a functionby Pardus (Pilgrim) |
on Jan 20, 2003 at 03:38 UTC ( #228274=note: print w/replies, xml ) | Need Help?? |
This can't be done directly since the search and replace functions return the number of matches, not the string.
But you could do this: although it _is_ a one-liner it won't get a beauty price either. -- Jaap Karssenberg || Pardus (Larus)? <pardus@cpan.org> >>>> Zoidberg: So many memories, so many strange fluids gushing out of patients' bodies.... <<<<
In Section
Seekers of Perl Wisdom
|
|