On 6/26/06, Practical Perl <[EMAIL PROTECTED]> wrote:

I got a warning message from my perl script,it's this:

Quantifier follows nothing in regex;

Have you seen what the perldiag manpage says about that message?

        return ($ok =1) if $arg1=~/$_/;

Unless $_ contains a valid regular expression when that line is
evaluated, your program will crash. Perhaps you want string equality
testing? Or to see whether one string contains another as a substring?

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to