in reply to Re: Parsing a table with variable columns on each line
in thread Parsing a table with variable columns on each line
#!/usr/bin/perl -l use strict; while( <> ) { chomp; local $, = "\t"; my ($name, $val1, $val2, @val3) = split ( "\t" ); print $name, $val1, $val2, $_ for @val3; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parsing a table with variable columns on each line
by Anonymous Monk on Oct 26, 2009 at 13:52 UTC |