Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 imbibing at the Monastery: (9)
As of 2024-06-13 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.