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...
--In reply to Re:x2 Creating Arrays on the Fly(boo)
by grinder
in thread Creating Arrays on the Fly
by sdl3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |