http://qs321.pair.com?node_id=665894

steadybompipi has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: perl script not giving output
by Fletch (Bishop) on Feb 04, 2008 at 04:00 UTC

    As anyone can obviously see from the ample code you've provided the problem is on line 17. I mean duh.

    (Hint: How (Not) To Ask A Question)

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: perl script not giving output
by haoess (Curate) on Feb 04, 2008 at 05:59 UTC

    Please note that some shells on some OS' redirect only some output (namely only STDOUT) when using >. Output produced by warn, die et al. is normally not printed to STDOUT, but STDERR. To redirect this output to your logfile (on some shells), you have to

    $ ./abcd.pl > file.log 2>&1

    -- Frank

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: perl script not giving output
by TedPride (Priest) on Feb 04, 2008 at 13:59 UTC
    If your Perl script produces the wrong line endings for your OS, you may end up with the appearance of a single line of output when there are in fact many, especially when using the cat command or similar from the command line. I've run into this before.
    A reply falls below the community's threshold of quality. You may see it by logging in.