On Wed, Aug 19, 2009 at 12:59, Raheel Hassan<[email protected]> wrote: > Thanks a lot for your support, it works now i made change in *my $result =~ > /[ OK ]/;* and now it works. snip
This does not do what you think it does. Your regex needs to be /\[ OK \]/. The regex /[ OK ]/ matches if the string contains " ", "O", or "K" (the brackets have special meaning in regex). -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
