Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^5: Windows and backslashes and replacements oh my! (two escapings in LHS of s///)

by LanX (Sage)
on Jun 19, 2021 at 12:09 UTC ( #11134024=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    d:\>perl -E"for $x (qw/C:\berrybrew\test C:\berrybrew /) {$_=$x; $bs=c
    +hr(92); s#$bs$bs#<${bs}>#g; say}"
    C:<\>berrybrew<\>test
    C:<\>berrybrew
    
    d:\>
    
  2. or download this
    use v5.12;
    use warnings;
    ...
    $_='$bs';
    s/\$bs/<$&>/;
    say;
    
  3. or download this
    C:<\>berrybrew<\>test
    C:<\>berrybrew
    <$bs>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-07-06 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?