On Mon Jun 27 16:13:21 2011, perlbug@spamwagon.com wrote: > When PerlIO::via runs the WRITE stack (or possibly any stack), > it does not appear to create a new dynamic scope for each layer > method called. Modifying the global regular expression match > variables like $1 in a lower IO layer can cause $1 to have an > unexpected value in the IO layer above. You are right in saying ‘possibly any stack’. This is the same as bug #22369. (But I disagree with the assessment in that ticket that it is just a matter of documenting it. This *is* a bug that needs to be fixed, IMO, since it is so counter-intuitive.)