Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: perl string extract

by eyepopslikeamosquito (Archbishop)
on Oct 04, 2010 at 07:07 UTC ( [id://863278]=note: print w/replies, xml ) Need Help??


in reply to Re: perl string extract
in thread perl string extract

Even after your update:

if ($line =~ /logfile\s*\=\s*(.+?)\s*\,?/){
it still does not work correctly because the non-greedy (.+?) matches only the f in filename, so that $file has the value f when it should contain filename.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found