in reply to Validating User Input
print "Enter words separated by commas."; chomp(my $answer=<STDIN>); die "Invalid input" if $answer =~ tr/a-zA-Z,//c;
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: •Re: Validating User Input
by DamnDirtyApe (Curate) on Jun 11, 2002 at 06:08 UTC | |
by merlyn (Sage) on Jun 11, 2002 at 13:20 UTC | |
by DamnDirtyApe (Curate) on Jun 11, 2002 at 14:49 UTC |