Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: regexp and a perl function

by mickeyn (Priest)
on Feb 27, 2006 at 15:38 UTC ( #533043=note: print w/ replies, xml ) Need Help??


in reply to regexp and a perl function

use the modifier 'e' on your regex ....

s/a/substr($b,0,1)/e ; s/b/substr($b,1,1)/e ;

(definition:) it evaluates the right hand side of s/// as an expression .

Enjoy,
Mickey


Comment on Re: regexp and a perl function
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2014-09-18 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (108 votes), past polls