We don't bite newbies here... much | |
PerlMonks |
Re: Net::Snmp Attemptby Abigail (Deacon) |
on Jul 13, 2001 at 10:27 UTC ( [id://96303]=note: print w/replies, xml ) | Need Help?? |
$1 doesn't really "do" anything; it's a variable
having a value. It is set by the preceeding regular expression
which contains a set of parenthesis. The part of the string
that is matched by the sub expression in the parens is put
in $1. This avoids needing to do the split and
getting the last element. See also the perlre
manual page.
-- Abigail
In Section
Seekers of Perl Wisdom
|
|