#!/usr/bin/perl $month = "December"; $year = "2007" ;
header($month,$year);
sub header {
my $month = shift ;
my $year = shift ; ######## here after shift the $year becomes null?
http://perldoc.perl.org/functions/shift.html
print "-" x 79, "\n" ;
print "$month $year Sales Report\n" ;
print "-" x 79, "\n" ;
$month = "January" ;
}
Thanks,
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/
