Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl open (INPUT, "< /etc/passwd"); while(<INPUT>) { ($col1, undef, undef, undef, $col5, undef) = split(/:/, $_); #undef are blank fields here write(); } format STDOUT_TOP = Name ID ---- -- . format STDOUT = @<<<<<<<<<<<<<< @<<<<<<<<<<<<<<< $col1, $col5 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Formatting output
by cjf (Parson) on Jun 13, 2002 at 12:15 UTC | |
by Anonymous Monk on Jun 13, 2002 at 13:19 UTC | |
|
Re: Formatting output
by jmcnamara (Monsignor) on Jun 13, 2002 at 12:17 UTC | |
|
Re: Formatting output
by Zaxo (Archbishop) on Jun 13, 2002 at 12:36 UTC | |
|
Re: Formatting output
by Abigail-II (Bishop) on Jun 13, 2002 at 12:16 UTC |