my @listaccountlocked = split("=", $accountlocked); if (chomp($listaccountlocked[1]) eq "True") { system("chuser account_locked='false' $username"); print(`lsuser -a account_locked $username`); } else { print("\nThe account $username is not locked\n\n"); }
In the code above (second line), I would like to use uc() and "TRUE" instead of relying on the OS to always respond in the correct case. Is there a way to do so without adding another variable? Whenever I try to add uc() in I get compilation errors, or I get the result of comping the variable. Probably a very simple thing, but I am at a loss.
Thanks be to the Monks who know.
In reply to Upper case and chomp by TechFly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |