Unless @databases is so large that you need the short-circuiting behaviour of the foreach version.{ ask('databasetype','Database type?','mysql'); output("Sorry, invalid option\n\n"), redo if not grep getConf('databasetype') eq $_, @databases; }
Makeshifts last the longest.
In reply to Re^2: On goto
by Aristotle
in thread On goto
by zachlipton
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |