Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^5: how to remove block of data from file based on string

by davido (Cardinal)
on Mar 15, 2012 at 04:05 UTC ( [id://959707]=note: print w/replies, xml ) Need Help??


in reply to Re^4: how to remove block of data from file based on string
in thread how to remove block of data from file based on string

I know you mentioned in CB you were handed this task as part of your internship. If Perl is to be a significant portion of the internship, let me give you a suggestion that will go a lot farther than me showing you how to use the diamond operator, open, a while loop, and regular expressions.

Visit O'Reilly's website, and purchase Learning Perl (the ebook is only $15.99 nowadays). It will take you a few days to get to chapter five, where files are discussed. Chapters seven, eight, and nine discuss regular expressions. It will be time and cash well spent. In fact, you might even get your company to purchase it for you.

If you prefer to just read online materials, follow the links in the first paragraph of this post. They will take you to Perl's own free documentation on the topics you're investigating.

Other helpful documents from Perl's POD (Perl's free documentation): perlintro, perlopentut, and perlrequick. Whether it's by diving into Learning Perl, or into the POD, you've got a few days worth of work ahead of you. But then you will have acquired two useful skills, one of them being the fundamentals of programming with Perl.


Dave

  • Comment on Re^5: how to remove block of data from file based on string

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found