Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: To repeat each word in a line

by NetWallah (Canon)
on May 23, 2021 at 05:32 UTC ( [id://11132905]=note: print w/replies, xml ) Need Help??


in reply to To repeat each word in a line

Here is some working code:
$ perl -F, -lanE 'm/module/?say:say qq|.$F[0]($F[0])$F[1]|' < input.tx +t module abc( .rist_top_tck(rist_top_tck) .rist_top_tdi(rist_top_tdi) .rist_top_tdo(rist_top_tdo)
If you would like to learn how/why that works, please read the documentation, and ask specific questions.

                "The difficult we do today; the impossible takes a little longer."

Replies are listed 'Best First'.
Re^2: To repeat each word in a line
by kulua (Initiate) on May 23, 2021 at 06:39 UTC

    How to execute this command from a perl file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found