Hello program on RedHat
I have RedHat 8 installed with Perl 5.8.
I've used Perl on windows before. What am I doing incorrectly? I run my test.pl program and I see no output. Here is my program: #!/usr/bin/perl print "hello\n"; I run command chmod 755 a.pl than I run /home/myid/hello_world.pl ...and nothing happens - I am back at my prompt... Any advise? thanks adam |
Quote:
I run command chmod 755 hello_world.pl ?? |
sorry, I have no experience of perl..but that looks like a problem
|
try perl /home/yourid/hello_world.pl
|
this should filter it throgh the perl interpreter
|
yup, just tried it, it works
|
1) Jatt_thugz: you are right - I made a mistake.
It should be "chmod 755 hello_world.pl" 2) perl /home/yourid/hello_world.pl does not help either very strange... |
perl works just fine when I use
perl -e ... |
All times are GMT -5. The time now is 12:49 AM. |