Hey, I managed to find the answer alone, with this script :

#!perl -l
$,=';';
$_="-a-bbbb-cc---";
/(a+)-+(b+)-+(c+)-/;
print "1234567890123";
print;
print @+;

which outputs :

1234567890
-a-bbbb-cc---
11;2;7;10

It certainly means that @+ contains the position of the last character of
last match in the original string, followed by the positions of the last
characters of the groups.

Terrific !

Damn, I don't have time (nor talent and sufficient knowledge) to investigate
the Perl source to find other vars like this one !!
This could be a decisive advantage for future golf sessions !!!

--
|3eno�t, self-made man


Reply via email to