Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Regular Exp. Problem!

by ishnid (Monk)
on Apr 15, 2004 at 10:51 UTC ( #345351=note: print w/replies, xml ) Need Help??


in reply to Parsing Log Files

Don't forget that the * is a special character in regexps. To match a literal *, you have to put a backslash before it.

Better yet, given the format of your lines, you could just use split() on each line:

my @bits = split(/\*/); push(@logg, $bits[0]);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2020-08-15 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (78 votes). Check out past polls.

    Notices?