Multi-Dimensional Array and push()

2002-06-05 Thread Balint, Jess
Hello all. I have trying to push a value onto the end of a two-dimension array. Here is my code. if( /\s+--\s+COLS\.\s+(\d+)\s+-\s+(\d+)\s+--/ ) { push( @{questionpos[$questionno]}, $1 ); push

Re: Multi-Dimensional Array and push()

2002-06-05 Thread Peter Scott
At 01:19 PM 6/5/02 -0400, you wrote: Hello all. I have trying to push a value onto the end of a two-dimension array. Here is my code. if( /\s+--\s+COLS\.\s+(\d+)\s+-\s+(\d+)\s+--/ ) { push( @{questionpos[$questionno]}, $1 ); Nope, Perl

Re: Multi-Dimensional Array and push()

2002-06-05 Thread Janek Schleicher
Jess Balint wrote at Wed, 05 Jun 2002 19:19:15 +0200: Hello all. I have trying to push a value onto the end of a two-dimension array. Here is my code. if( /\s+--\s+COLS\.\s+(\d+)\s+-\s+(\d+)\s+--/ ) { push(

RE: Multi-Dimensional Array and push()

2002-06-05 Thread Janek Schleicher
Jess Balint wrote at Wed, 05 Jun 2002 20:00:57 +0200: Thank you. That is all find and dandy now. But what about the print line: I am trying to print the newest value in the array. $questionpos[$questionno][$#{$questionpos[$questionno]}] print $pos[-1]; Greetings, Janek -- To

RE: Multi-Dimensional Array and push()

2002-06-05 Thread Janek Schleicher
Janek Schleicher wrote at Wed, 05 Jun 2002 20:14:27 +0200: I am trying to print the newest value in the array. $questionpos[$questionno][$#{$questionpos[$questionno]}] print $pos[-1]; Sorry, I wrote to quick: print $pos[$no][-1]; Cheerio, Janek -- To unsubscribe, e-mail: [EMAIL