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

Re: Regexes on Streams

by liz (Monsignor)
on Oct 11, 2003 at 11:09 UTC ( [id://298499]=note: print w/replies, xml ) Need Help??


in reply to Regexes on Streams

Some thoughts from your questions:

Is there a robust, pure-Perl way of inspecting regular expressions for possibly infinite constructs? Anything non-extreme but involving XS?

Maybe Mark-Jason Dominus' Rx module will allow you to inspect a regular expression enough to find out about infinite constructs.

...by reading in another block from the stream and reperforming the match

I would set a sort of "timeout" value here, I guess "dataout" value would be more appropriate. ;-)

...$handle/HANDLE needn't be a File::Stream tied handle, but may be just any filehandle.

Maybe you could achieve this by pushing an PerlIO handler on the handle?

Liz

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found