Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Function call in a regular expression

by dga (Hermit)
on Jul 31, 2003 at 22:22 UTC ( #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
Node Status?
node history
Node Type: note [id://279812]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2021-06-18 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (87 votes). Check out past polls.

    Notices?