$_ is a copy of $var. Any modifications to $_ will not propagate to $var. But you could write:given ($var) { ... use of $_ ... }
for ($var) { ... when clauses ... if (s{^cpan://}{http://search.cpan.org/search?query=}p) { ... last; } ... more when clauses ... }
In reply to Re: "when" and replacements
by JavaFan
in thread "when" and replacements
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |