Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] removing elements of an arrays on the fly

Expand Messages
  • Charles K. Clarkson
    ... $#$refArr does work: my $foo = [ 1 .. 3 ]; print $#$foo; HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home
    Message 1 of 3 , Oct 2, 2003
    • 0 Attachment
      : -----Original Message-----
      : From: Lange Gunter, CH [mailto:gunter.lange@...]
      : Sent: Thursday, October 02, 2003 10:09 AM
      : To: 'perl-beginner@yahoogroups.com'
      : Subject: AW: [PBML] removing elements of an arrays on the fly
      :
      :
      : Please, let me ask another question!
      :
      : To get the element count of an array there you will
      : use $#arr! But how to do it with a reference to an
      : array? It is very difficult for me to track it down
      : ($#refArr does not work, nor $#$refArr or $#@$refArr)

      $#$refArr does work:

      my $foo = [ 1 .. 3 ];

      print $#$foo;

      HTH,

      Charles K. Clarkson
      --
      Head Bottle Washer,
      Clarkson Energy Homes, Inc.
      Mobile Home Specialists
      254 968-8328
    Your message has been successfully submitted and would be delivered to recipients shortly.