in reply to Strange problem reading a text file

(1) The word 'my' is a reserved keyword, so you may want to choose a different name for your module.

(2) Module names which are not capitalized are traditionally "pragmatic" modules, involved in changing the behavior of the perl interpreter or interpretation of Perl code itself. You may want to capitalize your package name.

(3) You may want to use a utility like perltidy to help you write code that's more clear for reading. And use <code> ... </code> tags on this site to retain all the source code in the simplest format. You won't have to type all those <br>'s and angle bracket codes.

(4) Your question was why the last output didn't appear? Though I don't see anything wrong with your code as-is, I'm not very familiar with the old 'format' mechanism. It may be a simple problem with a missing newline at the end of your input. On some terminals, the last line of output will not appear if it was not followed with a newline (because the next command prompt erases it).

--
[ e d @ h a l l e y . c c ]

  • Comment on Re: Strange problem reading a text file

Replies are listed 'Best First'.
Re: Re: Strange problem reading a text file
by tariqahsan (Beadle) on Jun 13, 2003 at 20:53 UTC
    Halley
    Firstly thanks for your reply
    . The actual pm library in use is "Atlys.pm"
    The strange thing I can get read the output file correctly
    without any problem if it is read out
    from another script other than the pm script
    I tried to put a newline character like doing -
     print "$_\n";
    But did'nt help