Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re^3: Regexes on Streams - Revisited!

by tsee (Curate)
on Oct 15, 2003 at 13:30 UTC ( [id://299410]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Regexes on Streams - Revisited!
in thread Regexes on Streams - Revisited!

Just a quick note on using lexicals in those regex closures. The trouble was that the lexicals were seen sometimes. I could not find out when they were seen I<exactly>. If those regex code constructs worked alright as closures, they would have seen the lexicals I<all the time> because the closures were declared and used I<in the same scope> that the lexical was declared. What happened was, usually the first two times the regular expression engine executed the closure, the lexical would be incremented, and after that, the code would still be executed (print() worked), but the lexicals weren't touched. (I tried it with a tied lexical that warns when touched, too.)

Steffen
  • Comment on Re: Re^3: Regexes on Streams - Revisited!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://299410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-04-23 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found