[sf-perl] Plucking from a string

yary not.com at gmail.com
Thu May 22 16:43:41 PDT 2008


On Thu, May 22, 2008 at 4:40 PM, Neil Heller <nheller at silcon.com> wrote:
> You win the gold star!
>
> One question though.  In the line
>
>
>
> while ($theline =~ /($TARGETSTR\d+)/gi) {  print "$1\n"; }
>
>
>
> why did you use the parens "(" and ")" inside the real expression?

to set $1

see if the command "perldoc perlre" works on your system, it may be
helpful in explaining.


More information about the SanFrancisco-pm mailing list