perl - help understanding pattern matching in regex

Posted by hatorade on Stack Overflow See other posts from Stack Overflow or by hatorade
Published on 2010-04-29T07:53:30Z Indexed on 2010/04/29 7:57 UTC
Read the original article Hit count: 203

Filed under:
|
$line =~ /^(\d+)\s/; 
next if(!defined($1) ) ;
$paperAnnot{$1} = $line;

What is the $1? Is that the match found for (\d+)?

© Stack Overflow or respective owner

Related posts about perl

Related posts about regex