On Thu, 5 Jul 2001, Jorge Goncalvez wrote:

> I have the following :
>
> @drives = Win32::DriveInfo::DrivesInUse();
>
> How can I get the number of element in the array @drives?

my $num_drives = @drives;

An array in scalar context gives the number of elements.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
Things fall apart; the centre cannot hold.

Reply via email to