Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: replacing pipe "|"

by pfaut (Priest)
on Mar 26, 2003 at 20:41 UTC ( #246075=note: print w/replies, xml ) Need Help??


in reply to replacing pipe "|"

The pipe character (|) means alternation inside a regex. It needs to be escaped. Try s/\Q$rem\E/$rep/g.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2021-04-22 17:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?