Note that your code will give a warning if the @array contains '!', or any other string that doesn't look like a number and isn't equal to '#'for (@array) { when ("#") {do_something()} when (1) {do_where_var_is_1()} default {do_something_else()} }
In reply to Re: Is this bad coding style?
by JavaFan
in thread Is this bad coding style?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |