Re: run script on multiple files

2006-12-24 Thread John W. Krahn
Kirk Wythers wrote: > > On Dec 24, 2006, at 2:59 AM, John W. Krahn wrote: > >> Yes I saw where you tested $year but since I don't have the actual >> data to >> test with I had to guess, and I guess I guessed wrong. :-) > > I thought you did an amazing job at guessing what I intended without >

Re: run script on multiple files

2006-12-24 Thread Kirk Wythers
On Dec 24, 2006, at 2:59 AM, John W. Krahn wrote: Yes I saw where you tested $year but since I don't have the actual data to test with I had to guess, and I guess I guessed wrong. :-) I thought you did an amazing job at guessing what I intended without being able to look at a datafile

Re: run script on multiple files

2006-12-24 Thread John W. Krahn
Kirk Wythers wrote: > > I think I see what is happening. John's script was crashing at the end > of the first file with an error that I saw earlier when writing my > script. There is a footer at the end of each file and as soon as the > script hits the footer junk, it gives: > > Use of uniniti

Re: run script on multiple files

2006-12-23 Thread Kirk Wythers
On Dec 23, 2006, at 9:25 PM, Chris Charley wrote: - Original Message - From: "Kirk Wythers" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "John W. Krahn" <[EMAIL PROTECTED]> Cc: "Perl Beginners" Sent: Saturday, December 23, 2006 1:32 PM

Re: run script on multiple files

2006-12-23 Thread Chris Charley
- Original Message - From: "Kirk Wythers" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "John W. Krahn" <[EMAIL PROTECTED]> Cc: "Perl Beginners" Sent: Saturday, December 23, 2006 1:32 PM Subject: Re: run script on multiple files Th

Re: run script on multiple files

2006-12-23 Thread Kirk Wythers
Thanks or the reply John. I have a couple of questions inline. On Dec 22, 2006, at 10:53 PM, John W. Krahn wrote: #! /usr/bin/perl -w use strict; use Date::Calc qw(Day_of_Year); use DBI; #MICIS climate data munger. Required input argument is the file to process. #Use > to redirect output to n

Re: run script on multiple files

2006-12-22 Thread John W. Krahn
Kirk Wythers wrote: > > On Dec 22, 2006, at 8:33 PM, Chad Perrin wrote: > >> On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: >>> I have written a short perl script that munges climate data and then >>> loads it into a postgres database. It works fine on one file at a >>> time... syn

Re: run script on multiple files

2006-12-22 Thread Kirk Wythers
On Dec 22, 2006, at 8:33 PM, Chad Perrin wrote: On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: I have written a short perl script that munges climate data and then loads it into a postgres database. It works fine on one file at a time... syntax is ./program.pl filename I would

Re: run script on multiple files

2006-12-22 Thread Chad Perrin
On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: > I have written a short perl script that munges climate data and then > loads it into a postgres database. It works fine on one file at a > time... syntax is ./program.pl filename > > I would like to run it in a directory with mult