http://www.perlmonks.org?node_id=1021754


in reply to Re^4: newbie need help with a simple code
in thread newbie need help with a simple code

$1, $2, $3 and so on are what Perl populates captures to. However, some of us use a syntax that allows for named captures. If you read the man page for perlre all will become clear.