develooper Front page | perl.perl5.porters | Postings from September 2000

Re: [ID 20000901.008] Scoping (?) oddities with pos()

Thread Previous | Thread Next
From:
Mike Guy
Date:
September 1, 2000 07:31
Subject:
Re: [ID 20000901.008] Scoping (?) oddities with pos()
Message ID:
E13Urqg-0000ox-00@draco.cus.cam.ac.uk
Ronald J Kimball <rjk@linguist.dartmouth.edu> wrote
> 
> I think that pos() has the same scope as the string, not the match, and so
> the above behavior is correct.

You're quite right.   I always end up getting confused by m//g in scalar
context.


Mike Guy

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About