hi, just learning perl can someone tell me whats wrong with this:
print "The months of the year are: \n";
@months = ("January \n", "Febuary \n", "March \n", "April \n", "and so on... \n")
for $i (1, 2, 3, 4, 5) {
print "@months \n";
}
i get this error:
teishu@debian:~/prl$ perl months.pl
syntax error at months.pl line 5, near "$i ("
Execution of months.pl aborted due to compilation errors.
thanks