T
TechCrazy
Why do I have to move the declaration of $word outside like this:
my $word;
foreach $word (@word_array){
...
}
If I use inline declaration (to limit scope)
foreach (my $word) (@word_array){
...
}
the compiler gets confused.
my $word;
foreach $word (@word_array){
...
}
If I use inline declaration (to limit scope)
foreach (my $word) (@word_array){
...
}
the compiler gets confused.