in reply to Re^2: How is this printing?
in thread How is this printing?

Nope, I'm not exactly sure if I understand what you are asking, but here's my best guess...

Consider the following code and result

foreach ("abc123", "xyz123","def12","ghi123") { /(.*)123/; print "scanning $_: found $1\n"; } __DATA__ scanning abc123: found abc scanning xyz123: found xyz scanning def12: found xyz scanning ghi123: found ghi <code> Notice that while scanning "<code>def12
" the "$1" variable was not reset to undef but remains in its previously defined state.

Was this what you were asking?

Replies are listed 'Best First'.
Re^4: How is this printing?
by muba (Priest) on Oct 19, 2004 at 20:18 UTC