Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Function call in a regular expression

by dga (Hermit)
on Jul 31, 2003 at 22:22 UTC ( [id://279812]=note: print w/replies, xml ) Need Help??


in reply to Function call in a regular expression

As for the options the 'i' (ignore case) option doesn't do anything for this RE and if you use the hex character recommended the 'e' won't be needed either. Also using tr would have less overhead since you are changing one character into 1 other character.

$text =~ tr/\xe7/c/;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found