simple perl script that does not print
by Fred27377 from LinuxQuestions.org on (#56ZJ3)
I have this script below.It runs and when you execute $? it returns from BASH no errors but it will not print. This sounds limited but i have seen similiar errors before and maybe if you can clear one you can start to clear them all. Just thinking. Thanks for looking and considering.
Code:
#!/usr/bin/perl -d
#use warnings;
#use strict;
my $list = 0;
my $i = 1;
my $a = 0;
if (my $i < 10){
print my $i;
fi
}


Code:
#!/usr/bin/perl -d
#use warnings;
#use strict;
my $list = 0;
my $i = 1;
my $a = 0;
if (my $i < 10){
print my $i;
fi
}