Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: regex incorrectly matching newline

by ikegami (Patriarch)
on Jun 23, 2006 at 19:21 UTC ( [id://557300]=note: print w/replies, xml ) Need Help??


in reply to Re^2: regex incorrectly matching newline
in thread regex incorrectly matching newline

No problem. Of course, you could simplify your entire code down to:

$buf = "hello\nworld"; $buf =~ s/[^ -~]/./g; $rhs .= $buf;

The above alters the value of $buf in the process. Feel tree to make a copy of $buf and work with the copy if you want to preserve $buf's value.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-16 03:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found