in reply to What's the point of a labeled block without a loop?
my $age; INPUT: { print "Please enter your age: "; $age = <STDIN>; if ( $age !~ /\D/ ) { last INPUT; } redo INPUT; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the point of a labeled block without a loop?
by BrowserUk (Patriarch) on Dec 17, 2005 at 00:10 UTC | |
by dragonchild (Archbishop) on Dec 17, 2005 at 04:48 UTC | |
by Hue-Bond (Priest) on Dec 17, 2005 at 12:43 UTC | |
by Perl Mouse (Chaplain) on Dec 18, 2005 at 14:11 UTC |