Perl question

dsr at tao.merseine.nu dsr at tao.merseine.nu
Thu May 22 11:15:14 EDT 2003


On Thu, May 22, 2003 at 12:00:58AM -0400, Bill Bogstad wrote:
> 
> 
> Assuming Eric is continuing the previous line then #2 above is false.
> In a scalar context, the (implicit) match operator returns the
> number of strings captured by the regexp.  In a list context (this
> case), it returns a list consisting of all of the matched strings.
> Eric is doing the equivalent of assigning $1 to $etapagerem after the
> regexp matching completes.
> 
> As for the regexp issue, I agree that his regexp is unlikely to do
> anything useful.  However, I believe that it is well formed.  I
> interpret it as follows:

Thank you, I stand corrected.

-dsr-



More information about the Discuss mailing list