Re: Use of uninitialized value in concatenation (.) or string

2012-03-27 Thread timothy adigun
Hi Chris, Please, check my comment within your script and a "snap shot" script I wrote below if that could point you in the right direction, since we don't have access to your complete codes. On Wed, Mar 28, 2012 at 5:05 AM, Chris Stinemetz wrote: > Hello list, > > I am getting the results I

Re: Use of uninitialized value in concatenation (.) or string

2012-03-27 Thread Jim Gibson
At 11:05 PM -0500 3/27/12, Chris Stinemetz wrote: Hello list, I am getting the results I want with this iteration through the hash, but I am stump on clearing the following warnings: fyi line 12168 is the last line of the input file. Use of uninitialized value in concatenation (.) or string at

Use of uninitialized value in concatenation (.) or string

2012-03-27 Thread Chris Stinemetz
Hello list, I am getting the results I want with this iteration through the hash, but I am stump on clearing the following warnings: fyi line 12168 is the last line of the input file. Use of uninitialized value in concatenation (.) or string at ./TESTdeltaT1.pl line 54, <$SUM> line 12168. Use of

Re: ASCII/binary endline character trouble

2012-03-27 Thread Jenda Krynicky
Date sent: Sun, 25 Mar 2012 15:45:11 -0700 (PDT) > I write CGI scripts for my website in PERL.  When I used to upload > them with my FTP program I made sure to do so in ASCII mode rather > than binary.  My host made me switch to sFTP however.  I use > FIlezilla, and can't for the life of me f

Re: Finding a prime number

2012-03-27 Thread Jim Gibson
On 3/27/12 Tue Mar 27, 2012 9:07 AM, "Somu" scribbled: > Hello all! > > I know this is a very elementary question. But please help me with this. > There can be many good algorithms to find prime numbers, but being a > starter, please correct my mistakes. > I want to take a number as input and

Re: Free Fundamentals of Perl Programming course

2012-03-27 Thread Uri Guttman
On 03/27/2012 02:37 AM, 'lesleyb' wrote: Hi Came across this http://alison.com/courses/Perl-Programming?utm_source=outbound+marketing&utm_medium=email&utm_campaign=new_courses_11_perl_programming A Fundamentals of Perl Programming course by Mark Berman. Seems to cover the basics but I haven't

Finding a prime number

2012-03-27 Thread Somu
Hello all! I know this is a very elementary question. But please help me with this. There can be many good algorithms to find prime numbers, but being a starter, please correct my mistakes. I want to take a number as input and find out if it is prime or otherwise. My code is as follows: # start u

Re: Free Fundamentals of Perl Programming course

2012-03-27 Thread Randal L. Schwartz
> "'lesleyb'" == 'lesleyb' writes: 'lesleyb'> http://alison.com/courses/Perl-Programming?utm_source=outbound+marketing&utm_medium=email&utm_campaign=new_courses_11_perl_programming I like how the modules isn't even sorted. Professional work there. :) -- Randal L. Schwartz - Stonehenge C

Re: Perl script not executing from cron job

2012-03-27 Thread Shawn H Corey
On 12-03-27 10:16 AM, Anirban Adhikary wrote: I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Try using FindBin. FindBin was

Re: Perl script not executing from cron job

2012-03-27 Thread Anirban Adhikary
Hi All, I have found the solution. I need to write a line to top of my code and its works. use Lib "Path to your perl code"; then I can run this perl code directly from crontab I dont need a shell script to call the perl code. Thanks Anirban Adhikary. On Tue, Mar 27, 2012 at 7:41 PM, Paul Johnson

Re: Perl script not executing from cron job

2012-03-27 Thread Paul Johnson
On Tue, Mar 27, 2012 at 04:30:27PM +0530, Anirban Adhikary wrote: > Hi > I need to run a perl script from cron tab. > > so I write a small shell script and call the perl script within that shell > script. > /usr/bin/perl /home/anirban/perl_code.pl > > Before calling the perl script I copied all t

Re: Proc::PID::File - non-default location

2012-03-27 Thread Steve Bertrand
On 2012-03-27 08:36, Mendor wrote: Hello, I'm trying to write some daemon application using Proc::Daemon and Proc::PID::File modules. But I've encountered that Proc::PID::File crashes when I'm trying to put lockfile to a non-default location. E.g. the part of code: my $pid = Proc::PID::File->ne

Proc::PID::File - non-default location

2012-03-27 Thread Mendor
Hello, I'm trying to write some daemon application using Proc::Daemon and Proc::PID::File modules. But I've encountered that Proc::PID::File crashes when I'm trying to put lockfile to a non-default location. E.g. the part of code: my $pid = Proc::PID::File->new(dir => '/var/run/subdirectory'

Perl script not executing from cron job

2012-03-27 Thread Anirban Adhikary
Hi I need to run a perl script from cron tab. so I write a small shell script and call the perl script within that shell script. /usr/bin/perl /home/anirban/perl_code.pl Before calling the perl script I copied all the contents of the .profile file and paste it within the shell script. But still

Re: ASCII/binary endline character trouble

2012-03-27 Thread Rob Dixon
On 25/03/2012 23:45, hOURS wrote: I write CGI scripts for my website in PERL. When I used to upload them with my FTP program I made sure to do so in ASCII mode rather than binary. My host made me switch to sFTP however. I use FIlezilla, and can't for the life of me find out how to choose the