On Aug 22, William A Fink said:
>Hello, I'm *BRAND NEW* to "the list" and have what may seem trivial to
>some of you - but (because of the pressure here at-the-office) I'd
>appreciate any help anyone could lend.
Your subject should be related to your question, if you don't mind.
>What I'm running up against is: if the string that I'm looking in
>contains (1 or more) *'s, or +'s or .'s - I get an error.
That's because you're using the string as a regex, and those characters as
special to regexes. You don't wnat a regex anyway.
if (index($looking_for, $original_ip_address) > -1) { $i++ }
Please read:
perldoc -f index
and the regex documentation if you're so inclined:
perldoc perlretut
perldoc perlre
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]