drodinthe559 has asked for the wisdom of the Perl Monks concerning the following question:
print "Enter EOM date (MM/DD/YY)?"; chomp(my $eomdate = <STDIN>); my ($month,$year) = (substr($eomdate,0,2), substr($eomdate,-2)); my $month_t = (qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/)[$m +onth -1]; print $month_t . " " . $year . "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substring Syntax Check
by JavaFan (Canon) on Sep 26, 2008 at 22:38 UTC | |
by drodinthe559 (Monk) on Sep 26, 2008 at 22:42 UTC | |
|
Re: Substring Syntax Check
by dragonchild (Archbishop) on Sep 27, 2008 at 01:44 UTC | |
|
Re: Substring Syntax Check
by ikegami (Patriarch) on Sep 26, 2008 at 22:19 UTC | |
by jwkrahn (Abbot) on Sep 27, 2008 at 02:19 UTC | |
by ikegami (Patriarch) on Sep 27, 2008 at 03:55 UTC | |
by Anonymous Monk on Sep 27, 2008 at 04:29 UTC | |
by drodinthe559 (Monk) on Sep 26, 2008 at 22:38 UTC | |
by toolic (Bishop) on Sep 26, 2008 at 23:49 UTC |