We don't bite newbies here... much | |
PerlMonks |
Re^5: how to remove block of data from file based on stringby davido (Cardinal) |
on Mar 15, 2012 at 04:05 UTC ( [id://959707]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|