Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: perl ?compiler?

by eighty-one (Curate)
on Nov 19, 2008 at 19:01 UTC ( #724686=note: print w/replies, xml ) Need Help??


in reply to perl ?compiler?

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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2021-10-16 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?