perldoc docs/pmc/array.pod
and search for "out-of-bounds", you'll see it's working as advertised.
If you want an array that grows automatically, PerlArray will do that:
perldoc docs/pmc/perlarray.pod
and search for "non-interesting"
Hope this helps.
On Monday, Jul 21, 2003, at 13:45 America/New_York, Andy Bussey (via RT) wrote:
--# New Ticket Created by Andy Bussey # Please include the string: [perl #23076] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=23076 >
I assume it should be possible to push something on to an empty Array, but it doesn't work for me.
This is the Pasm file: --- print "OK 1\n" new P0, .Array print "OK 2\n" push P0, "hello" print "OK 3\n" set S0, P0[0] print "OK 4\n" print S0 end ---
This is the output: --- OK 1 OK 2 Array index out of bounds! ---
Apologies if this is a lack of understanding of something on my part.
Cheers,
Andy Bussey
===== Andy Bussey Email [EMAIL PROTECTED] Mobile 07814 740887
_______________________________________________________________________ _
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
Will "Coke" Coleda will at coleda dot com