It returns the total number of characters removed from all its arguments.This means you are using that incorrectly. Rather than using eq, I would suggest using a regular expression, like
where $ will ignore a trailing newline in reporting a match.my @listaccountlocked = split("=", $accountlocked); if ($listaccountlocked[1] =~ /^true$/i) { system("chuser account_locked='false' $username"); print(`lsuser -a account_locked $username`); } else { print("\nThe account $username is not locked\n\n"); }
In reply to Re: Upper case and chomp
by kennethk
in thread Upper case and chomp
by TechFly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |