in reply to Re^2: How is this printing?
in thread How is this printing?
Consider the following code and result
" the "$1" variable was not reset to undef but remains in its previously defined state.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
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 |