Hi monks,
I got a question about the $ variables in Perl, if I have some codes like below:
if(/^\s*(.+)\s*/){ if($1 =~ /\[(\d+)\]/){ ... } }
Is the (\d+) inside the second if $1 or $2?.
It is only a simple example for figuring out what the second (\d+) should be. If there are some syntax errors pls ignore them.
Thanks a lot guys.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |