in reply to Re: Creating Arrays on the Fly(boo)
in thread Creating Arrays on the Fly

Try this:

  perl -le 'print push @foo, undef'

It will return 1, the number of elements successfully pushed onto the array. And undef is what you get when you try to read from an exhausted file handle, hence, your push is always true, at least until you run out of swap space...

--
g r i n d e r