Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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


Comment on Re: Make a line generic
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-06 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls