in reply to Counter && print issue
I'm sure this is in a loop of some type. If you want to format your output you should probably use printf, the print format command (though I'm unsure of how to mix the colors in there).print color("white"), "\n $elt ", color("reset") . color("green") , "\ +t\t\t Ok", color("reset");
this statement will assign a value of 1 to $check, so what you're saying here is "if $check is 0 or less, assign a value of 1 to it and continue with the block". This may not be what you want.foreach $i ($elt) { $check = system($check . $elt); if ( $check > 0 ) { } elsif ( $check = 1 )
|
|---|