[Melbourne-pm] Regexps - how does the lexical scope of capture buffers work? (Was: Regexp: What's the right way to do this?)

Peter Vereshagin peter at vereshagin.org
Wed Oct 17 14:42:58 PDT 2012


Hello.

2012/10/18 01:33:44 +0400 Peter Vereshagin <peter at vereshagin.org> => To melbourne-pm at pm.org :
PV> The what is wrong with this:
PV> ?

Oops:

    -while ( my $buf .= <DATA> ) {
    +while ( my $buf = <DATA> ) {

--
Peter Vereshagin <peter at vereshagin.org> (http://vereshagin.org) pgp: A0E26627 


More information about the Melbourne-pm mailing list