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

Re: How to handle metacharacters in input file for Perl one-liner code

by duelafn (Parson)
on Jul 16, 2015 at 13:15 UTC ( #1135015=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $file = "foo.c";
    
    ...
        $line =~ s/\Q$file\E/$file,=SUM(B$x:B$y)/;
        print $OUT $line;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2021-10-20 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (79 votes). Check out past polls.

    Notices?