in reply to Variable in pattern matching line

There is an easy way to "capture" your pattern matches. This can be done by grouping your expression with parens (). The mathces made will then be in $1, $2, $3 ... Such as:

$_ = "FOO:BAR";
/(.*?):(.*)/;

No you will have $1 = FOO and $2 = BAR