Help for this page

Select Code to Download


  1. or download this
    Can't use an undefined value as an ARRAY reference
    
  2. or download this
     my $data = data();
     my $count = scalar(@$data); #  $#$data;
    print $count;
    
  3. or download this
    It does not work if the array ref returns nothings
     my $data = data();
     my $count = scalar(@$data); #  $#$data;
    print $count;
    
  4. or download this
    my @count = $data;
    my $count = @count;
    print $count;