Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Extracting a chapter from text file

by bigj (Monk)
on Apr 15, 2014 at 14:43 UTC ( [id://1082351]=note: print w/replies, xml ) Need Help??


in reply to Extracting a chapter from text file

You simply miss a g modifier on your regexp. Without in @finds, only the first match is inside, withit all matches will be in. Then you can just print $finds[1] and you will get what you want.

Greetings,
Janek Schleicher

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-19 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found