sdyates has asked for the wisdom of the Perl Monks concerning the following question:
First few lines of the OUTPUT file.use CGI qw(:standard); use strict; use warnings; my $line; my $file; my ($f1,$f2,$f3,$f4,$f5); my $output = "new.htm"; open (OUTPUT, ">$output") or die "Cannot open $output"; my $z=0; $file='irregular-verbs.csv'; open(F,$file)||die("Could not open $file"); while ($line=<F>) { print OUTPUT "<tr>"; my @cells= split ',',$line; foreach my $cell (@cells) { print OUTPUT "<td>$cell</td>"; } print OUTPUT "</tr>"; } close(F);
Thanks for your help!<tr><td>Base Form</td><td>Past Simple</td><td>Past Participle</td><td> +3rd Person Singular</td><td>Present Participle / Gerund Abide</td><td>Abode/Abided</td><td>Abode/Abided/Abidden</td><td>Abides +</td><td>Abiding Aby/Abye</td><td>Abought</td><td>Abought</td><td>Abys/Abyes</td><td>Ab +ying Alight</td><td>Alit/Alighted</td><td>Alit/Alighted</td><td>Alights</td +><td>Alighting Arise</td><td>Arose</td><td>Arisen</td><td>Arises</td><td>Arising Awake</td><td>Awoke</td><td>Awoken</td><td>Awakes</td><td>Awaking
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I feel stupid... 2 hours later
by Kenosis (Priest) on Nov 24, 2012 at 07:37 UTC | |
|
Re: I feel stupid... 2 hours later
by monsoon (Pilgrim) on Nov 24, 2012 at 07:15 UTC | |
by sdyates (Scribe) on Nov 24, 2012 at 12:12 UTC | |
|
Re: I feel stupid... 2 hours later
by 2teez (Vicar) on Nov 24, 2012 at 07:10 UTC | |
|
Re: I feel stupid... 2 hours later
by Anonymous Monk on Nov 24, 2012 at 10:56 UTC |