hi,
I have very weird problem, or i'm too stupid..so,
diff myprog myprog.new
276a266
> my $xx = $db[$vars{_recNo}]{'name'};
Ok the variable $xx is not used in any place of the program, just this assignment.. but the program yeld different result
if I comment it ?!
It is not nececery to make assignment, just using it changes
the result.. in my case it was into one reg-ex.. but assignment is easer do debug...so lets continue..
do u have any explanation on this...
some examples, lets call result sets - rs1 and rs2 :
my $xx = $db[$vars{_recNo}]{'name'};
yield rs1
my $xx = $db[$vars{_recNo}]{'name'};
$xx = 0;
yield rs1
#my $xx = $db[$vars{_recNo}]{'name'};
yield rs2
my $xx = $db[5]{'name'};
yield rs2, never mind what number I use..
my $xx = $db[$vars{_recNo}];
yield rs2
I'm again mentioning this virable is not used in any part of the script....
Tell me other testing scenarios ot better some solution :")
I'm with Gentoo - perl-5.8.0-r12
It seems to me like some problem with hashes ! or me just doing stupid things !!
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.