Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: how to split based on new line or others ?

by smokemachine (Hermit)
on Nov 08, 2006 at 11:37 UTC ( [id://582854]=note: print w/replies, xml ) Need Help??


in reply to how to split based on new line or others ?

Could be this?!
perl -F: -nae 'next if /^#|^$/;chomp$F[1];print "<$F[0]>$F[1]</$F[0]>\ +n"' file

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found