On Monday 21 Jul 2003 6:45 pm, 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 #What type of array are you trying to construct? > 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/
I have added a comment to the code. Perhaps you can read the documents regarding PASM. Regards Bryn Taylor