i have a good understanding of this example yes, but there is some things i still dont understand ofcourse. i am no seasoned professional as most of you know, and sometimes the perldocs scare me lol, so when i am able to take something out of my own script, and dull it down from 30 or 40 lines to 7-10 lines, it makes me want to share that incase any other "new" perl scripters might find it useful (or atleast the example might give them a better idea of a way they can do it)
and i am always open to feedback. would you like to see the code that this replaces? this code dumbs down what i had before and will find the three words in the if statement (and in any order) in the paragraph. and if that is the paragraph you were looking for it should return what you need out of it trivially.
but please do not look at me as some seasoned professional. i know alot more now than i did a few months ago when i really started to dive into perl, but i am still a long way away from being "good".
EDIT: and yes there are many newline characters and blank lines throughout the file
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.