From: Rob Richardson <[EMAIL PROTECTED]>
> I have a class that contains a member that is an array.  I have a
> method of the class that gets me a reference to the array.  I can
> print out the contents of the array.  But I can't find out how many
> items are in it!  What is going on here?  There's something simple I'm
> missing.
> 
> Here's the code that retrieves the reference to the array, with a
> bunch of print statements in it to try to figure out if I know what
> I'm doing or not:
> 
> sub GetCrewList
> {
>  my $self = shift;
>  print "Getting crew list<br>";
>  my $crewListRef = $self->{'crew'};

print "Crew list size: ".scalar(@$crewListRef)."\n";

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to