Hello,
after struggling a bit with my first Perl program I got stuck in a weird situation..., wherein a file was shown to be loaded successfully but was not processed (as I did not realize it was not closed). I believe it has to do with missing EOF, but even with strict and perl -w, it did not report any error. After discussing with other Perl users who pointed that calling a system command (which mysteriously solved the problem) did the trick as system call closes the open fork, which again I beg to differ, as it means one cannot use system command when a file is being written (and data was still being displayed).

I suspect incorporating appropriate error in such cases would be really useful. But what I would like to confirm is that the error was solely due to missing EOF. I would be happy if someone can clarify me on this. I use Perl 5.8.1 (Mdk9.2).
The code and input files to reproduce the problems are:
http://www.geocities.com/qhayaal/maulya.pl
http://www.geocities.com/qhayaal/wHyd.txt
Complete info of the problem:
http://perlguru.com/gforum.cgi?post=22053;sb=post_latest_reply;so=ASC;forum_view=forum_view_collapsed;;page=unread#unread

jdporter - edited: added <br> tags; added square brackets to URLs.


In reply to Error not reported while processing an open file by qhayaal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.