Okay, I know a hash would do this, but I'm mostly just curious...
Is there some way to extract the index of an array element? For instance:
@array = ( "Ben", "George", "Thomas", "Mervyn", "Alexander" );
$idx = some_op @array "Mervyn";
print "The index of Mervyn in the array is $idx!\n";
# The index of Mervyn in the array is 3!
What, if anything, might "some_op" be?
Thanks,
Deane
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
