I'm having difficulty figuring out how to validate user input that matches a string followed by user arguments, it always goes to my else statement.
elsif ($user_input eq "sort by" && $ARGV[2])
{
print"this is working";
#use arguments to sort by user command
print $ARGV[2], "\n\n\n";
}
else #user validation
{
print "Error, please re-enter command \n\n";
&Menu;
}`