Hi brethren,
I have encountered a very strange issue, and I'm looking for advice on how to start finding the root cause...
I have a VERY old script with line 1 which says
#!/opt/bin/perl5.004
To support its update to use Oracle 19c, I've changed that to
#!/opt/oraClient/11.2.0.4/perl/bin/perl
However, I now find that the behaviour has changed, and when I drill into it with the debugger I find the problem seems to be with the diamond file handle
The code says
while( <> ) {
&assert ( (substr($_,0,4) eq "573\r") , "blah, blah...
What I'm seeing is that in the original Perl, I am not going into the while loop, but with the new version, I am!
Command line is identical for each version, environment is identical for each version - the only change is line 1!
Any thoughts on how I can get to the bottom of this...?
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.