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
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
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(
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
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