In a scalar context it's a flip flop operator as you described.
And for() gives a list context.
You might want to pop back to perlop and re-read how it acts differently in different contexts.
In reply to Re: Range Operators Question
by clintp
in thread Range Operators Question
by dsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |