Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by LanX (Saint)
on Jun 19, 2021 at 12:09 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found