in reply to Script issue involves File Handling.
Another variant:
#!/usr/bin/perl use strict; use warnings; # 798719 print "Wrestlername Crowdreaction Specialmove\n"; while ( <DATA> ) { print join("\t", split(/\|/)); } __DATA__ The Rock|Cheer|Rock Bottom Triple H|Boo|Pedigree Stone Cold|Cheer|Stone Cold Stunner
However, toolic's output is more readable. Tabular output from the above suffers because the field_lengths are so uneven:
Wrestlername Crowdreaction Specialmove The Rock Cheer Rock Bottom Triple H Boo Pedigree Stone Cold Cheer Stone Cold Stunner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Script issue involves File Handling.
by toolic (Bishop) on Oct 02, 2009 at 23:21 UTC |