in reply to Re^3: HTML::Strip returning blank value after parsing
in thread HTML::Strip returning blank value after parsing

Even am getting valid value of $field(not blank) when i'll execute it as a single record but the problem lies when am fetching 25k-40k records in a single go from oracle DATABASE.
Below is the perl suedo code mentioning the problem :
script start .... .... select * from table where some condition = some value .... while(around 25k-40k records) { my $field = ''; $field = $h->{'HTML_FIELD'} if(defined($h->{'HTML_FIELD'})); $field = &html_parsing($field) if($field); ##4-5 $field values come blank here while their ##corresponding $h->{'HTML_FIELD'} values ##are well defined in DATABASE with html tags and ##english phrases and ideally should not be blank when ##passed though html parser. } 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

Replies are listed 'Best First'.
Re^5: HTML::Strip returning blank value after parsing
by Anonymous Monk on Jan 16, 2013 at 17:30 UTC

    Below is the perl suedo code mentioning the problem :

    Once again, that is not any different from your previous postings -- it shows no problem

    I'm not sure what you're expecting