Perl module HTML::Strip is returning blank values after parsing whereas valid values are expected. We are using perl 5.8.8 on CentOS release 5.7 (Final). In our script we are fetching around 25k records in a single go from DATABASE and parsing them with HTML::Strip and in the process around 4-6 records are becoming blank after parsing whereas in DATABASE they have a defined value(containing english phrases along with html tags).
Below is the part of the code:script starts ... ... ... While(25k to 50k records from DB) { my $field = ''; $field = $h->{'HTML_FIELD'} if(defined($h->{'HTML_FIELD'})); $field = &html_parsing($field) if($field); } sub html_parsing { my $raw_html = shift; my $hs = HTML::Strip->new(); my $string = $hs->parse( $raw_html ); ## Problem: here the $string is becoming blank after parsing. $hs->eof; return $string; } ... ... ... script ends
When we again check only for those 4-6 blank records through a sample script then after html parsing their values is as expected from DATABASE(not blank). Any help will be really appreciable.
Thanks| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |