in reply to character location question

Try LAST_MATCH_END when using a regular expression.

Update:

Regex's are really unnecessary for this on second thought.

How about:
my $i = 0; while ( $i != -1 ) { $i = index( $text, "ll", $i ); if ( $i != -1 ) { print $i, "\n"; $i = $i + 1; } }
or (equivalently)
my $i = 0; print $i++, "\n" while ( ( $i = index( $text, "ll", $i )) != -1 );
--------------
It's sad that a family can be torn apart by such a such a simple thing as a pack of wild dogs