Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Isn't there an "e" missing?

by RMGir (Prior)
on Apr 10, 2002 at 11:40 UTC ( #157999=note: print w/replies, xml ) Need Help??


in reply to Re: multiple substitutions
in thread multiple substitutions

<quote> $$imageMap =~ s/ViewObject.pl\?name=(.*?)_DIAGLINK/getfromdb($1)/gxi; </quote>
- - - - - - - - - - - - - - - - - - - -

Shouldn't there be an "e" in the options?

$$imageMap =~ s/ViewObject.pl\?name=(.*?)_DIAGLINK/getfromdb($1)/gxie;
Otherwise, you'll be replacing with a literal "getfromdb(whateverdollar1matched)", I think...
--
Mike

Replies are listed 'Best First'.
Re: Isn't there an "e" missing?
by IndyZ (Friar) on Apr 10, 2002 at 16:20 UTC
    Yep, you're right. This is what I get for typing on no sleep. The example has been fixed.

    --
    IndyZ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-09-29 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?