>>>>> "J" == Jatin  <daveyja...@gmail.com> writes:

  J> while ($catalog =~ /Perl/gi) {
  J> while ($catalog =~ /Perl/) {

  J> The only place where it was changed was in the pattern matching area 
  J> where i removed the usage of all the modifiers. can some one please 
  J> answer the following questions for me:


  J> 1. Why is the CPU being used so much ? Is the code going in some sort of 
  J> a loop ?

yes. infinite loop.

why did you remove the modifiers? do you know what the /g modifier does?
it is critical to the code. 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 Guttman  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
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