[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Regex which works, but doesn't



Oh, you wanted $1, $2, $3 to show up?  They won't.  Here's what perlre has to
say:

  The scope of $<digit> (and $`, $&, and $') extends to the end of the
  enclosing BLOCK or eval string, or to the next successful pattern match,
  whichever comes first.

They've gone out of scope.



WagsWorld@aol.com wrote:
>No. In the actual code, it comes in on the line.  As you look at the code, 
>and observe the o/p, it shows going through type three, but no output occurs 
>on the prints of the defined $1 $2 $3. Also if you look at the special fields 
>the last match is VALUE, but it can't be from what I know, but obvidously I 
>don't know as much as I thought.
>
>Wags ;)
>

  -------------------                            -------------------
  Ken Williams                             Last Bastion of Euclidity
  ken@forum.swarthmore.edu                            The Math Forum



# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org