For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > August 2004 > function return value in a regexpr









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author function return value in a regexpr
Jonas

2004-08-10, 4:06 am

Dear members,

How can I use a function return value in a regexpr?

$tmp=~s/mysearch/myfunction($1)/;
sub myfunction {
return $v;
}


Thanks in advance,

Jonas
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com