On Saturday 30 October 2010 01:31 PM, ashwin ts wrote:
Hello Jathin,
The problem with the code is that its gone in to an infinite loop..
The pattern matching that u have done u need to make it global or for
all occurances.
..
The /g option is used to match all the patterns in the given string
u can try this..
while ($catalog =~ /Perl/g)
Regards
Ashwin Thayyullathil Surendran
#91 9884444732
Yes , That was the issue in the code , Though i must say it made me
understand the regexp engine in a better way :)
Thanks
Jatin
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/