On Saturday 30 October 2010 01:11 PM, Uri Guttman wrote:

yes. infinite loop.

why did you remove the modifiers?
[Jatin] I read about the perl regexp engine. In one of the statement i read that the engine stops matching once the pattern is found. so i had removed the modifiers and test if the engine stops and gives me the result as soon as the first match for the string "Perl" is found in my web page.
  do you know what the /g modifier does?
[Jatin] yes i know its functionality. It basically does not stop if the first match is found. It continues until all the matches are found in the string. In this case the string is stored in the $catalog variable.
it is critical to the code.
[Jatin] I would like to know , Critical in what sense ? I mean what makes it critcal ?
  read about /g in perldoc perlop in the
m/PATTERN/ section. if you don't understand what /g does from that, come
back here with more questions.

uri


Uri , Thanks for the response.

Thanks
Jatin

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to