K
Karlo Lozovina
Here I go again: the following code:
while(my $line = <DIRLIST>) {
my $dir_list[$i] = $line;
chomp($dir_list[$i]);
$i++;
}
produces this error:
syntax error at ./backup.pl line 24, near "$dir_list["
when i use "use strict". I read Programming Perl's chapter on strict,
but I can't get this thing working
.
while(my $line = <DIRLIST>) {
my $dir_list[$i] = $line;
chomp($dir_list[$i]);
$i++;
}
produces this error:
syntax error at ./backup.pl line 24, near "$dir_list["
when i use "use strict". I read Programming Perl's chapter on strict,
but I can't get this thing working