in reply to Re: Re: Modules on a Unix server
in thread Modules on a Unix server
#!/path/to/perl print "Hello, world";
If you've got the shebang right, this should just output Hello, world when you execute it.
As for use lib, what you probably really want to do is this:
use lib '/export/home/jones/perl/lib/perl5/site_perl/'; use LWP::Simple;
The first line basically says "when I write use Something, make sure you look in /export/home/jones/perl/lib/perl5/site_perl/ to find Something.pm."
The second line actually uses the LWP::Simple module (appending lwp/Simple.pm to the path specified by use lib).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Modules on a Unix server
by Anonymous Monk on May 15, 2002 at 12:10 UTC |