...

> But I don't really understand the @sizes = map{@$_[$#$_]}@listing;
>
> I thought it would be the same as @sizes = @listing;
> So tried it, but the resultant output was wrong.
>
> Per my understanding:-
>
> @$_ makes the array name the current item name from the list @listing
> While the @$_ array's element is $#$_ being the last element number
> of @listing (in this case 3) where the remainder is the value of @listing?
>
> I know what I mean, but do you?

well... what I did was, since the data looked like it did, is made an array of arrays

C:\ Total drive size = 2253693952
qw{C:\ Total drive size = 2253693952} a list
[qw{C:\ Total drive size = 2253693952}] ref
and ([qw{C:\ Total drive size = 2253693952}], .... )
stuffed 'em into an array, @listing

I think every $_ in the map is actually one of those funky pointer thingys that perl uses (that makes it so cool and funky..??), so, maybe, who cares what the data actually represents? SCALAR(array789309943)(sic) whatever?

But, really, I've got no clue. It occured to me to do it that way, and it worked, I *think*....?? Being neither a programmer or particularly 'numerate'.

So. Either it's magic, or I'm delusional. Either one is possible. I'm just trying to learn this stuff. Sorry to confuse! ;-)


> Let me show you what I think it to mean, and then someone
> can set me right:-
>
> @sizes = ("$2253693952[32253693952]",
> "$914102784[3914102784]",
> "$18202509312[318202509312]",
> "$3483238400[33483238400]");
>
> I guess not . . .
>
> Just in
[]

cheers --

--
Michael Higgins

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to