![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re: perl scriptby citromatik (Curate) |
on Jun 24, 2009 at 12:04 UTC ( #774368=note: print w/replies, xml ) | Need Help?? |
perl -lne '/gi\|(\d+)\|/ && push @sofar,$1}{$,=",";print @sofar' <yourfile>
citromatik
In Section
Seekers of Perl Wisdom
|
|