[Perl-unix-users] Problems setting up ActiveState Perl...

2001-01-12 Thread rundog
I'm having problems setting up ActiveState from the RPMs. Everything seems to run fine, and I can even run a simple script by typing "$ perl test", but I can't get it to execute a script without including "perl" in front of it. I made it executable with "$ chmod +x test", but when I run it nothin

Re: [Perl-unix-users] Problems setting up ActiveState Perl...

2001-01-12 Thread Manesh Rao
>I'm having problems setting up ActiveState from the RPMs. Everything seems >to run fine, and I can even run a simple script by typing "$ perl test", >but >I can't get it to execute a script without including "perl" in front of it. >I made it executable with "$ chmod +x test", but when I run it

[Perl-unix-users] fcntl()

2001-01-12 Thread Nikola Knezevic
Why doesn't the program bellow work: Perl complains about some uninitialised value at line 13, but there everything seems to be OK... #!/bin/perl -w use Fcntl; use English; my($fname) = $ARGV[0]; open(FIN, "<$fname") or die "Cannot open $fname\n"; $RS = undef; my($strng) = ; my($fct); fcntl(F

RE: [Perl-unix-users] fcntl()

2001-01-12 Thread Elston, Jeremy
The value is not initialized. As the error states, $fct has not been initialized (assigned a value). Initialize $fct by assigning a value to it. my $fct = 0; or my($fct); $fct = 0; etc... Bear in mind that this is only a warning, not a critical error. This error does

RE: [Perl-unix-users] fcntl()

2001-01-12 Thread Nikola Knezevic
Dana 12.01.01, Elston, Jeremy napisa: > The value is not initialized. As the error states, $fct has not been > initialized (assigned a value). Initialize $fct by assigning a value to it. > my $fct = 0; > or > my($fct); > $fct = 0; > etc... > Bear in mind that this is only a wa

[Perl-unix-users] problems setting up Activestate Perl...

2001-01-12 Thread John W Cunningham
I'm having problems setting up ActiveState from the RPMs. Everything seems to run fine, and I can even run a simple script by typing "$ perl test", but I can't get it to execute a script without including "perl" in front of it. I made it executable with "$ chmod +x test", but when I run it nothin

[Perl-unix-users] Re: How to check if a Module is installed? Defining my own 'CPAN' FTP server for modules

2001-01-12 Thread Gerrit P. Haase
<9 Jan 2001, 13:01 Uhr wars, als Martin Moss schrieb:> < How to check if a Module is install > > I wish to write an installation script which will accompany a new module > I've written, > It must install the new module, and then check for the presence of some > other "inhouse" written modules. If

RE: [Perl-unix-users] Problems setting up ActiveState Perl...

2001-01-12 Thread John W Cunningham
Manesh, Perl is on Linux 7, I installed using RPMs I got from ActiveState's site (http://www.activestate.com/Products/ActivePerl/Download.html - Linux RPM). Here's the code: #!/usr/bin/perl $Incoming = ; print $Incoming; print ("\n\n Hello for Test \n\n"); Perl is installed into /usr/bin -

Re: [Perl-unix-users] problems setting up Activestate Perl...

2001-01-12 Thread Murray Nesbitt
> I'm having problems setting up ActiveState from the RPMs. Everything seems > to run fine, and I can even run a simple script by typing "$ perl test", but > I can't get it to execute a script without including "perl" in front of it. > I made it executable with "$ chmod +x test", but when I run i

Re: [Perl-unix-users] problems setting up Activestate Perl...

2001-01-12 Thread $Bill Luebkert
Murray Nesbitt wrote: > > > I'm having problems setting up ActiveState from the RPMs. Everything seems > > to run fine, and I can even run a simple script by typing "$ perl test", but > > I can't get it to execute a script without including "perl" in front of it. > > I made it executable with "$