[EMAIL PROTECTED] wrote:
Hey Guys,
Hello,
I am working on linux (redhat) 1999 version without the xwindows.
It's either X or the X Window System.
http://en.wikipedia.org/wiki/X_Window_System
I have configured my dns server on this linux box and it works fine
for my test lab network at home. Apache and sendmail are also working
fine without any problem.
I have this huge book called the camel about perl which i have read
over ten times before even touching the program perl itself to get the
theory of the whole thing. now when i went to the shell as root
You shouldn't normally login as root, especially if you are connected to the
internet.
trying to launch perl from #!/usr/bin/perl -wT
nothing seems tobe working, it hangs and doesn't go any further on the
next line for ever till i kill the process and then it tells me stopped
perl. what is it that i am ding wrong , i need somebody to help me
understand how to launch this program perl. i know it is installed
because the program tells me everything is o.k when i rpm -q perl.
i even typed in all the example perl cgi scripts that i learned
still nothing, i like working upwards that is why i am using
a lower version of linux and then try to move on to the latest
kernels.
please let me know what to do .
If you are working in a shell from the command line then type 'perl ' and then
the program name or type 'perl -e' and then valid Perl code, for example:
$ cat myprogram
print "Hello John\n";
$ perl myprogram
Hello John
$ perl -e'print "Hello John\n";'
Hello John
$
And if you have your Perl program in a file you can put '#!/usr/bin/perl' on
the *first* line:
$ cat myprogram
#!/usr/bin/perl
print "Hello John\n";
$ ./myprogram
Hello John
There is some more information in the man page:
perldoc perlrun
And also at the web site:
http://learn.perl.org/
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/