Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Succint Perl version of Awk

by eyepopslikeamosquito (Archbishop)
on May 30, 2023 at 06:32 UTC ( [id://11152495]=note: print w/replies, xml ) Need Help??


in reply to Succint Perl version of Awk

$ cat jwtest.txt one two three four five six seven eight nine A B C D E F G H A B C D E F G H I J $ perl -ale'$F[0]=$F[1]=$F[2]=""; print "@F"' <jwtest.txt four five six seven eight nine D E F G H D E F G H I J $ perl -alpe '$_="@F[3..$#F]"' <jwtest.txt four five six seven eight nine D E F G H D E F G H I J

Replies are listed 'Best First'.
Re^2: Succint Perl version of Awk
by Galdor (Sexton) on May 30, 2023 at 06:38 UTC
    yeah - I guess it was that 2d variant I was looking for...More perlish...Thanks.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2024-03-28 10:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found