i did this and executed then even though the same problem
<code> my $counter = 1;
foreach my $key (keys %hdr_field_vars) {
my $data_ref = $hdr_field_vars{$key}[0];
# my $form=$hdr_field_vars{$key} 1;
my $data;
# if(($form=~/^V1$/ || $form=~/^V4$/ || $form=~/^V2$/ || $form=~/^V15$/) && defined($data_ref)){
# if($data_ref ne 'NULL'){
# $data = "'".$data_ref."'";
# }
# else
# {
$data = $data_ref;
# }
# }
# else{
# $data = $data_ref;
# }
print $JBM $data."\n";
# use Data::Dumper;
# print $JBM "<--------------------";
# print $JBM Dumper($data);
# print $JBM "-------------------->\n";
$sth_header->bind_param( $counter, $data);
$counter++;
}
ok about second point i know that, the hash will return the values in random order
for date its giving error
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|