for is not an expressionNo, but Perl does have a construct to turn any statement into an expression, and it's called do.
@foo = map {do {1 for 1}} @bar;
In reply to Re^4: map { ; ; ; } @array
by Perl Mouse
in thread map { ; ; ; } @array
by kwaping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |