in reply to Re^2: chomp each element of array
in thread chomp each element of array

> I would rather say that the array is imposing a list context and that the chomp operator is used in a list context in this case.

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)