Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for your helpsub input { while ( 1 ) { my $input = <STDIN>; chomp ( $input ); if ( $input !~ /\d/ ) { print "ILLEGAL INPUT\n"; next; } last; } return $input; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: my() troubles
by lemming (Priest) on Feb 14, 2001 at 04:22 UTC | |
|
Re: my() troubles
by dvergin (Monsignor) on Feb 14, 2001 at 10:50 UTC | |
|
Re: my() troubles
by a (Friar) on Feb 14, 2001 at 10:43 UTC |