in reply to Auto Fill
Hello Monks,
After stepping back from the script I finally figured it out on my own...sometimes you just have to step back and re think what it is you are doing...fixed code below:
print "==============\n\n"; print "| COMMODITY: |\n\n"; print "==============\n\n"; my $cmmdty = <STDIN>; $cmmdty = <STDIN> until defined $cmmdty; chomp $cmmdty; if ($cmmdty) { if ($cmmdty eq "NONE") { chomp(my $lore = "E"); } else { chomp(my $lore = "L"); cls();
It does exactly as I expect it to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Auto Fill - FIXED
by kcott (Archbishop) on May 16, 2015 at 05:36 UTC | |
|
Re^2: Auto Fill - FIXED
by NetWallah (Canon) on May 16, 2015 at 00:44 UTC | |
by PilotinControl (Pilgrim) on May 16, 2015 at 01:20 UTC |