in reply to Converting output from numeric values to text
You should be using ==, but how about something a little more direct:
C-.my @mnths = qw(jan feb mar apr may jun jul aug sep oct nov dec); my ($month) = (localtime(time))[4]; my $New_mo = $mnths[$month]; print $New_mo;
update:I didn't even see the scope issue for the other two ideas and that was actually the reason nothing was getting into the output file. Even if you lost the "my" in your structures, however, you'd still get the wrong data in the file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Converting output from numeric values to text
by cacharbe (Curate) on Mar 29, 2002 at 00:52 UTC |