#!/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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to