What program? Is it something you wrote or something you got somewhere else?

It's possible that everything is working fine, if you're running a program that does not produce output. I can't imagine why a program would produce no output if it was meant to be run from the command line, but it's possible. And if you're new to Perl and writing a simple program, you might just have forgotten to write anything, or perhaps are accidentally writing a blank variable. For example, this would produce no output without telling me I'd done something wrong due to my failure to use strict and use warnings:

#!/usr/bin/perl my $Nothing = "Hello World\n"; print $nothing;

Maybe try a simple test, like running

perl -e 'print "Hello!\n";'
from a command line, to confirm that Perl is OK and you can see output to your terminal.


In reply to Re: perl ?compiler? by eighty-one
in thread perl ?compiler? by bobekdj

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.