Apr 22, 2001, 6:50 AM
Post #1 of 2
I have some error checking in my program and I need to make sure that the user keys in a valid command. One of the valid commands is whitespace or newline. Here is my section of code, but I can not figure out how to include newline character as a valid commmand:
elsif ($command !~ /^[h?qxadls]$/)
print "\nERROR: Not a valid command!\n"
Any ideas or suggestions?