Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

perl script not giving output

by steadybompipi (Initiate)
on Feb 04, 2008 at 03:56 UTC ( #665894=perlquestion: print w/replies, xml ) Need Help??

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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://665894]
Approved by naikonta
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2021-12-08 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (34 votes). Check out past polls.

    Notices?