nope, you're wrong. the operator chomp imposes the context, thats how scalar @array works.
I think @array can only impose list context as LHS of =, which becomes a list-assignment operator then.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^3: chomp each element of array
by LanX
in thread chomp each element of array
by torres09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |