The following code looks too rigid, how can I achieve the same result
using one of the control structure (foreach, for, etc)?
#!/usr/bin/perl -w
use strict;
use Date::Calc qw(:all);
my @today = Today();
my $year_now = $today[0];
my $month_now = $today[1];
my $day_now = $today[2];
print ($year_now);
print ("===\n");
print ($month_now);
print ("===\n");
print ($day_now);
print ("===\n");
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>