Re: Need help parsing file for output

2007-11-02 Thread Tom Phoenix
On 11/2/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: > No modules other than what comes with the basic perl installation are > available. Well, it's fortunate that so many modules come with Perl, then. Still, there are always more modules on CPAN if you need them. [Long description of task snip

Need help parsing file for output

2007-11-02 Thread Gerald Wheeler
Running Perl 5.x on Solaris 9 SPARC No modules other than what comes with the basic perl installation are available. I have a file: file1.csv as such: Day of the year, value 1,4144.34 2,4144.38 3,4144.38 4,4144.38 5,4144.44 6,4144.48 7,4144.48 8,4144.50 9,4144.50 10,4144.48 11,4144.50 12,4144.52 1

Re: need help parsing file for output

2007-09-26 Thread Gerald Wheeler
Thank you both... much appreciated.. Jerry >>> "Dr.Ruud" <[EMAIL PROTECTED]> 09/25/07 5:10 PM >>> "John W. Krahn" schreef: > open my $IN, '<', $file_in or die "Cannot open '$file_in' $!" > open my $OUT, '>', $file_out or die "Cannot open '$file_out' $!" These lines could use a ";" at the end

Re: need help parsing file for output

2007-09-25 Thread John W. Krahn
Dr.Ruud wrote: "John W. Krahn" schreef: open my $IN, '<', $file_in or die "Cannot open '$file_in' $!" open my $OUT, '>', $file_out or die "Cannot open '$file_out' $!" These lines could use a ";" at the end. Oops. Thanks. John -- Perl isn't a toolbox, but a small machine shop where you

Re: need help parsing file for output

2007-09-25 Thread Dr.Ruud
"John W. Krahn" schreef: > open my $IN, '<', $file_in or die "Cannot open '$file_in' $!" > open my $OUT, '>', $file_out or die "Cannot open '$file_out' $!" These lines could use a ";" at the end. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: need help parsing file for output

2007-09-25 Thread John W. Krahn
Gerald Wheeler wrote: John, I am getting compile errors.. As for $! I am running Solaris 9 SPARC 64-bit.. errors: # perl -c readFiles.pl "my" variable $file_out masks earlier declaration in same scope at readFiles.pl line 10. "my" variable $file_out masks earlier declaration in same statement

Re: need help parsing file for output

2007-09-25 Thread Gerald Wheeler
Thanks... This is great... Thanks again! Jerry >>> "John W. Krahn" <[EMAIL PROTECTED]> 09/25/07 12:51 PM >>> Gerald Wheeler wrote: > I could use some real expert help here.. > I have only the basic - no add-on modules except what comes with Perl > > What is needed, Is this possible with Perl 5.

Re: need help parsing file for output

2007-09-25 Thread John W. Krahn
Gerald Wheeler wrote: I could use some real expert help here.. I have only the basic - no add-on modules except what comes with Perl What is needed, Is this possible with Perl 5.x.. read from file olddata.txt output to newdata.txt 1) output all numerics inside parenthesis to negative values

Re: need help parsing file for output

2007-09-25 Thread Paul Lalli
On Sep 25, 12:34 pm, [EMAIL PROTECTED] (Gerald Wheeler) wrote: > I could use some real expert help here.. No you could use some real basic help here. There is nothing in your requirements that indicates the need for an "expert" of any sort. > I have only the basic - no add-on modules except what

need help parsing file for output

2007-09-25 Thread Gerald Wheeler
I could use some real expert help here.. I have only the basic - no add-on modules except what comes with Perl What is needed, Is this possible with Perl 5.x.. read from file olddata.txt output to newdata.txt 1) output all numerics inside parenthesis to negative values e.g., (32) should output