I don't know if you're doing what you intended here...
You are looping over @vname, setting $line to the current
element and chomping it, then you are using the manual loop number
$j to get that same element of @vname. You might want to replace the
$vname[$j] with $line and remove the line $j++. Otherwise
you are repeating things.
And the regex should probably be $line=~/"$request"/i.
Updated: Yeah for my $j (0..$#vname) was the other
construct I would have recommended if I'd noticed that $email[$j] there,
hmmm...don't know why I missed seeing that. Oh well.
And the quotes might or might not be supposed to be there, probably not though, I should
have guessed he didn't know regex that well when I saw the 'i' in the wrong place.
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.