i can make the program work when i use
my $line;
my @lines;
but i cant seem to make
#!/opt/perl5/bin/perl -w
use strict;
#my $line;
my @lines;
while(my $line=<> and $line ne ".\n"){
push @lines,$line;
}
foreach(reverse @lines){
print;
}
work am i doing something wrong??
i keep getting this error
Global symbol "$line" requires explicit package name at day1_test.1.pl
+ line 8.
Value of <HANDLE> construct can be "0"; test with defined() at day1_te
+st.1.pl line 8.
Execution of day1_test.1.pl aborted due to compilation errors.
snowrider