Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Make a line generic

by snadra (Scribe)
on Aug 11, 2003 at 11:26 UTC ( #282824=note: print w/replies, xml ) Need Help??


in reply to Make a line generic

Hello,

I am sorry, but what do you mean by 'text-line'?
Please be a bit more specific.
It does not really help to open one thread after the other, which all seem to seek for the same result (or not?). I think it would be better to just use one thread and try to explain your problem more detailed.
If you want to use a regular expression you need to write =~ instead of =
# to figure out if a line matches write: if ($endUnixLine =~ /^otsort.*/) { print 'matches'; }
That would match a line, wich has 'otsort' in the beginning followed by zero or more characters.

snadra

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://282824]
help
Chatterbox?
[ambrus]: So that, or if you really want something agnostic to the loop, then use curl multi. Its interface is quite reasonable (unless you use an old version),
[ambrus]: though it's very C-like (serious use of varargs so easy to pass the wrong type), and there are some minor problems (busy loop because it doesn't use the same timer as your event loop, so you have to artificially delay timer callbacks by a small amount).

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2016-12-07 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (130 votes). Check out past polls.