in reply to print statement does not work
or whatever the path is to the perl interpreter (binary executable) file that you have installed.#!/usr/bin/perl
If the installation went well enough for the perl interpreter to run, then the following shell command ought to work, printing the config/environment info for your installation:
and so should the next command line, printing "hello, world" on your screen, assuming that your newly installed perl can be found in the PATH variable of your current environment setup.:perl -V
(note the use of both single and double quotes)perl -e 'print "hello world\n"'
What seems odd is that you have to install perl yourself on a solaris box -- I would have thought that perl would be there already. Anyway, if you've done your own perl install for whatever reason, you have to know the path to your "perl" executable, and you have to make sure you cite that path on the shebang line of every script you write.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: print statement does not work
by Hammy (Scribe) on Dec 17, 2002 at 02:47 UTC | |
by graff (Chancellor) on Dec 17, 2002 at 03:20 UTC | |
by Hammy (Scribe) on Dec 17, 2002 at 03:47 UTC | |
by graff (Chancellor) on Dec 17, 2002 at 05:37 UTC |