loop362 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -Tw use strict; use CGI qw(:standard); print "Content-Type: text/html\n\n"; print '<body bgcolor="cccccc">'; ##################################### my $employee=param('employee_name'); my $certification=param('certification'); my $month=param('month'); my @month=""; my $day=param('day'); my $year=param('year'); my $key=""; my $i=""; my $t=""; my @data=""; my $items; my $lines; my $number; my @mon = qw (January Feburary March April May June July August Septem +ber October November December); ##################################### # Read File # ##################################### print "Employees name is <b> $employee </b><p\/><hr><p\/>"; open(JOE, "<Files/$employee.txt"); @data = <JOE>; close (JOE); ##################################### # Print File # ##################################### $lines=scalar@data/4; for ($i=1; $i<=$lines; $i++) { $certification = shift(@data); print "Certification is $certification on "; $number = shift (@data); $month = $mon [$number-1]; print "$month"; $day = shift (@data); print " $day"; $year = shift(@data); print " $year"; print "<p\/><HR>"; } ##################################### print '<div align="center"><table width="120" border="1" cellspacing=" +2" cellpadding="0"><tr><td align="center">To go Back</td></tr><tr><td + align="center"><a href="http://hawaiicivilmarriage.com/FFD/">Click H +ere</a></td></tr></table><p></p></div>'; print '</body'; ##################################### exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Change number into month
by ikegami (Patriarch) on May 24, 2005 at 20:29 UTC | |
|
Re: Change number into month
by davidrw (Prior) on May 24, 2005 at 21:14 UTC | |
|
Re: Change number into month
by davidrw (Prior) on May 25, 2005 at 14:47 UTC | |
|
Re: Change number into month
by mifflin (Curate) on May 25, 2005 at 04:27 UTC | |
|
Re: Change number into month
by davidrw (Prior) on May 25, 2005 at 16:15 UTC |