Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Re: Regular expression question

by TASdvlper (Monk)
on Jan 16, 2004 at 19:16 UTC ( [id://321882]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular expression question
in thread Regular expression question

What does this part do:
$repl{$1}||$1/ge;
I know the 'g' is global but I couldn't find what the 'e' is. Also, I couldn't find any info for the '||'.

Thanks in advance.

Replies are listed 'Best First'.
Re: Regular expression question
by Abigail-II (Bishop) on Jan 16, 2004 at 20:17 UTC
    I couldn't find what the 'e' is
    It's in man perlop.
    Also, I couldn't find any info for the '||'.
    Amazingly, that's also in man perlop.

    Abigail

      Let's see if I did my homework right.

      An "/e" will cause the replacement portion to be treated as a full-fledge Perl expression and evaluated right then and there.

      An "||" Logical "OR" if the left expression true, then right is never evaluated.

      I think I got a handle on it now. Thanks for the pointers and making me do the homework ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-25 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found