I went netsearching for this but couldn't find anything in all the noise. 1) What is the runtime cost of the scalar operator? Is it constant or does it depend on the size of the array? Is it different than $#array?
2) What's the best way to turn the result of the map function into an array reference? Say one has an array of objects and one wants an array reference to an array of object IDs. Should I do A) my @ids = map $_->id, @objs; my $ref = [EMAIL PROTECTED]; B) my $ref = [ map $_->id, @objs ]; C) my $ref = \map $_->id, @objs; 3) Does the answer to (2) depend on which list generating function is called? Thanks! _______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs