I want to know the meaning of perl special variables $-[0]
and $+[0]
I have googled and found that $-
represent number of lines left on the page and $+
represent the last bracket matched by the last search pattern.
But my question is what $-[0]
and $+[0]
means in context of regular expressions.
Let me know if code sample is required.
$+[0]
is quite clear. – Bobbobb@-
and@+
. – Aikido