- or download this
use strict;
use warnings;
...
for ($cond) {
my $j=1;
}
- or download this
my $cond = 1;
foreach $_ ($cond) {
...
foreach $_ ($cond) {
my $j = 1;
}
- or download this
#comments added on update
#print "$i/n"; # Works for input code, not output code
#print "$j/n"; # Fails for both