It appears that my question wasn't as simple as I thought it might be. That maybe because I didn't express myself clearly so I'll have another go
I haven't provided samples because
- I didn't want to risk providing anything that may be considered proprietry
- I didn't beleive it was necessary
- I was after a generic answer (I would like to use this on different jobs and in each job the checkpoint is constructed differently)
I know that m/string/ will tell me if "string" is in $_, and I assume m/$string/ will tell me if the string stored in $string is in $_, but what I need to know is the syntax for finding out if $string1 contains $string2 anywhere (something like C's strstr function). I don't need to know where in $string1 $string2 was found, nor do I want $string1 changed unless I find $string2 within it, I only need to know if it was found.
If I still haven't explained myself properly, or more information is needed, I will try to come up with examples that don't contain propriety information.
Moriarty
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.