Here's a date I'm having the user enter in to get the month and the year, so I can create a folder with the month name and year. I wasn't sure how to handle the splitting of the date. I tried using split, but it didn't like the / as a delimitter.
Any input would be appreciated.
Thanks,
Dave:)
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";