Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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