Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: sed command with variable in perl

by ww (Archbishop)
on Aug 14, 2017 at 20:07 UTC ( #1197381=note: print w/replies, xml ) Need Help??


in reply to sed command with variable in perl

Short version (it's all I have time for): don't. Use regexen. When you're using perl, shelling out is an expensive and unnecessary option in most cases.

It looks as tho you should read about regexen -- and specifically, substitution -- in a tutorial right here; that is, in the Tutorials section.

Replies are listed 'Best First'.
Re^2: sed command with variable in perl
by BillKSmith (Prior) on Aug 15, 2017 at 13:35 UTC
    I did not recognize he word 'regexen' as simply the plural of 'regex'. A search revealed that it is a correct, possibly even preferred, form. An explanation (or reference) would have been a big help.
    Bill

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2020-09-30 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (169 votes). Check out past polls.

    Notices?