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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.