Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: How is this printing?

by Sandy (Curate)
on Oct 19, 2004 at 13:04 UTC ( [id://400592]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 16:18 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://400592]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.