JoeJaz has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; my $input='unixhelp pts/5 10.3.4.54 Fri Jun 13 11:08 still logged in unixhelp pts/5 10.3.4.00 Fri Jun 13 11:05 - 11:05 (00:00) unixhelp pts/5 10.3.4.00 Fri Jun 13 11:04 - 11:05 (00:00) unixhelp pts/5 10.3.4.00 Fri Jun 13 11:00 - 11:01 (00:00) unixhelp pts/5 10.3.4.00 Fri Jun 13 10:49 - 10:52 (00:03) unixhelp pts/8 10.3.4.00 Fri Jun 13 10:46 - 10:46 (00:00) unixhelp pts/3 10.3.4.00 Fri Jun 13 10:12 - 10:12 (00:00) unixhelp pts/3 10.3.4.00 Fri Jun 13 10:10 - 10:10 (00:00) unixhelp pts/3 10.3.4.00 Fri Jun 13 10:09 - 10:09 (00:00) unixhelp pts/3 10.3.4.00 Fri Jun 13 10:07 - 10:08 (00:00)'; print "Content-type: text/html\n\n"; print "<HTML><BODY>\n"; print " <TABLE>\n"; print " <TR>\n"; foreach ($input) { print "<TD>"; print; print "\n</TD>"} print " </TR>\n"; print " </TABLE>\n"; print "<BODY><HTML>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing Variables
by halley (Prior) on Jun 13, 2003 at 16:55 UTC | |
by EvdB (Deacon) on Jun 14, 2003 at 12:19 UTC | |
|
Re: Parsing Variables
by Coplan (Pilgrim) on Jun 13, 2003 at 17:01 UTC | |
by waswas-fng (Curate) on Jun 13, 2003 at 17:36 UTC | |
|
Re: Parsing Variables
by jcpunk (Friar) on Jun 13, 2003 at 16:47 UTC | |
|
Re: Parsing Variables
by naChoZ (Curate) on Jun 13, 2003 at 16:58 UTC | |
by nimdokk (Vicar) on Jun 13, 2003 at 18:41 UTC | |
|
Re: Parsing Variables
by fglock (Vicar) on Jun 13, 2003 at 16:58 UTC |