in reply to Re: push foreach glob - bug?in thread push foreach glob - bug?
s/^\s+//, s/\s+$// for @array; [download]
Right. But modifying values that way doesn't involve coercion of a string into an array reference... (I have just been giving a hint to puzzle further ;-)