Help Appending: Does data Exists ??

2008-04-03 Thread Gerald Wheeler
Need some assistance: A script that writes (will usually appends) 8 records (rows/lines/whatever) to a flat file problem: If there are NO records with the date (date format: 03-Apr-08) of the "incoming data" I want to write/append these records to the file If there are existing reco

Re: Help Appending: Does data Exists ??

2008-04-03 Thread Gerald Wheeler
>>> Rob Dixon <[EMAIL PROTECTED]> 4/3/2008 3:49 PM >>> Gerald Wheeler wrote: > Need some assistance: > A script that writes (will usually appends) 8 records > (rows/lines/whatever) to a flat file > problem: > If there are NO records with the date (dat

add filename to existing string in file

2008-08-28 Thread Gerald Wheeler
All, How would I use something like this: perl -pei 's/mailto:[EMAIL PROTECTED]/mailto:[EMAIL PROTECTED] Comment Concerning Page: /g' `find ./ -name *.html *.htm` To recursively (in current and all subdirectories) find and replace this: mailto:[EMAIL PROTECTED] with this: mailto:[EMAIL PROTEC

Re: add filename to existing string in file

2008-08-28 Thread Gerald Wheeler
John, Thanks for the very fast reply.. Much appreciated.. will give it a try.. J. >>> "John W. Krahn" <[EMAIL PROTECTED]> 8/28/2008 2:45:38 PM >>> Gerald Wheeler wrote: > All, Hello, > How would I use something like this: perl -pei > 's/

Insert value in existing record

2006-05-18 Thread Gerald Wheeler
Wondering how I can insert a value: "abc|" http://learn.perl.org/>

regex help needed

2006-09-27 Thread Gerald Wheeler
I am looking for: ab1in line1 and looking for: ab2 in line 2 actually ab1 and ab2 immediately follow the last "/" (there are numerous "/" on the line (w/o quotes)) These are not working. can some explain what these say and what they should say (syntax) to return the results I'm looking f

Play wav/au (sound) files

2006-10-18 Thread Gerald Wheeler
I see this type of code numerous places throughout the Web in html files. Acer negundo The window shows the correct pronunciation in the html page. I have a need to play (via the browser) wav/au files from within an html and or jsp page. Does anyone know how to do this or can point me to an ex

Perl/HTMl Upload: CGItemp*****

2007-01-22 Thread Gerald Wheeler
I am running Perl on Solaris 9 SPARC I have a huge number of very, very large files in /var/tmp with file names as such: CGItemp (n is a random number) I am assumming that these files were created is association with a file upload utility I have that uses HTML and Perl, one for each file uplo

replace existing text within multiple text files: How?

2007-09-11 Thread Gerald Wheeler
I have about 400 text files I need to replace the contents. All files are in the current directory as the perl script runs out of my $newText = "This is my new text.. anybody's text goes here"; open(INFILE, $plants) while (<>) { print $newText; } I need help.. Thanks -- To unsubscribe,

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

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 > >

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

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

Need help with date-time and output

2007-11-20 Thread Gerald Wheeler
Running Perl 5.6.1 on Solaris 9 SPARC No (access to) modules available other than what comes with the basic perl installation. I have a file: ifiln.csv as such: Julian 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,41

Re: Need help with date-time and output

2007-11-21 Thread Gerald Wheeler
First off thanks for the assistance See inline comments: >>> John W.Krahn <[EMAIL PROTECTED]> 11/20/2007 4:31:01 PM >>> On Tuesday 20 November 2007 14:00, Gerald Wheeler wrote: > Running Perl 5.6.1 on Solaris 9 SPARC > No (access to) modules available other than wh

Re: Need help with date-time and output

2007-11-21 Thread Gerald Wheeler
ORDATA $_->{ rval }; print ORDATA "some text4"; print ORDATA "Calendar Date 2007/11/20 format - How? ($dyr)"; print ORDATA "some text5\n"; } close(ORDATA); *- >>> John W.Krahn <[EMAIL PROTECTED]> 1

Re: Need help with date-time and output

2007-11-21 Thread Gerald Wheeler
CTED]> 11/20/2007 4:49 PM >>> Tom Phoenix wrote: > On 11/20/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote: >> No (access to) modules available other than what comes with the basic >> perl installation. >> >> *** I do NOT know how to increment (and format

Re: Need help with date-time and output

2007-11-21 Thread Gerald Wheeler
access to additional modules Thanks J. >>> "Gerald Wheeler" <[EMAIL PROTECTED]> 11/21/07 10:40 AM >>> John, I have modified my script as per your suggestions: ** ++ chomp() returns the number of $/ values that were removed from its argument(s) so that is not wh

Re: Need help with date-time and output

2007-11-22 Thread Gerald Wheeler
Thanks I'll try in.. J. >>> John W.Krahn <[EMAIL PROTECTED]> 11/21/07 9:26 PM >>> On Wednesday 21 November 2007 09:40, Gerald Wheeler wrote: > John, > I have modified my script as per your suggestions: > > > #!/usr/bin/perl > > use strict; >

Re: Need help with date-time and output

2007-11-26 Thread Gerald Wheeler
d through only January 31 Thanks J. >>> John W.Krahn <[EMAIL PROTECTED]> 11/21/2007 9:26 PM >>> On Wednesday 21 November 2007 09:40, Gerald Wheeler wrote: > John, > I have modified my script as per your suggestions: > > > #!/usr/bin/perl > > use str

Re: Need help with date-time and output

2007-11-26 Thread Gerald Wheeler
One additional note: The input data, column one has values 1 to 365(6) Thanks J. >>> "Gerald Wheeler" <[EMAIL PROTECTED]> 11/26/2007 9:40 AM >>> I am getting and error: Day '32" out of range 1..31 at ... line 35 for this line: my ( $d, $m, $y ) =

Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
Trying to install Carp-Clan (prerequisite to Date Module) Downloaded file from CPAN unzipped file cd to directory Carp-Clan-5.9 perl Makefile.PL make /usr/ccs/bin/make test (This failes with the following error(s): Anybody know what I'm doing wrong.. # /usr/ccs/bin/make test PERL_DL_NONLAZY=1

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
It appears that there is no end to the prerequisites for any given module.. Are they all really necessary for a build?? test??? Thanks J. >>> "Tom Phoenix" <[EMAIL PROTECTED]> 11/26/2007 2:03 PM >>> On 11/26/07, Gerald Wheeler <[EMAIL PROTECTED]> wrote:

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-26 Thread Gerald Wheeler
tor.o' *--- If I was a betting man I would say it's looking for a C/C++ Compiler which I do not have Thanks J. >>> "Gerald Wheeler" <[EMAIL PROTECTED]> 11/26/2007 2:11 PM >>> It appears that there is no end to the prerequisites for any given module

Re: Trouble Installing Carp-Clan 5.9.x

2007-11-27 Thread Gerald Wheeler
the unsubscribe notice three times. - Because then it's all backwards. - Why is that? - Please, don't top post! From: "Gerald Wheeler" <[EMAIL PROTECTED]> > Correction, I did get to the end of one branch.. no further prerequisites. > However, I got this error at th

Installing Date::Calc

2007-12-03 Thread Gerald Wheeler
It appears that installing the prerequisites for Date::Calc (Bit::Vector) requires a C compiler. Is there any way to install Date::Calc (and it's prerequisites) when one does not have the capability to compile the module? Are precompiled modules for Solaris 10 SPARC available form somewhere? Tha

Re: Installing Date::Calc

2007-12-05 Thread Gerald Wheeler
least for the primary Unix flavors (Solaris, AIX, Linux, etc.) there would be binaries available for download with the the modules offered by CPAN. Thanks J >>> Peter Scott <[EMAIL PROTECTED]> 12/4/2007 6:46 AM >>> On Mon, 03 Dec 2007 11:40:16 -0700, Gerald Wheeler

How to add Text::CVS Module

2006-01-09 Thread Gerald Wheeler
I do not have access to a "C" compiler, etc.. I am running perl 5.6.1 on Solaris (Unix) How can I import Text::CVS into my existing perl 5.6.1 installation.. A step by step example would be great... probably to much to ask for.. Thanks Jerry -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Module Installation - Solaris

2006-01-10 Thread Gerald Wheeler
Running Perl 5.6.1 on Solaris 9 (Unix) SPARC Trying to install a (actually any ) module e.g., CPAN (upgrade), MD5, XML::XSLT, etc.. using: perl -MCPAN -e shell I do not have access to a "C" compiler, etc... The errors shown below occurred for every module I attempt to install.. (below is just

Use Strict Question

2006-01-12 Thread Gerald Wheeler
Need a little help... trying to this thing right.. with all these errors one might assume it's simply - forgot to do something... any help in the solution to these errors is greatly appreciated "use strict;" is used.. # perl -c theta.pl > Variable "$error" is not imp

The "@" symbol

2006-01-13 Thread Gerald Wheeler
trying to include the following code with the abc.pl script... the snippet works in an html/css environment print < @import url("theta.css"); @media print { body {background: white; color: black; font: 12pt Times, serif;} #noprnt {d

regexpressions help

2006-02-14 Thread Gerald Wheeler
I am trying to allow input of a person's first and last name in one form field, nothing more, nothing less There should be only one uppercase A-Z character followed by one or more lowercase a-z characters followed by one space followed by one uppercase A-Z character followed by one or more lowerca

running Perl in verbose mode

2006-02-24 Thread Gerald Wheeler
Running Perl on HP.. Is there such a thing as running Perl in verbose mode? It would be nice to see the results of some of the commands, etc. executed/evaluated.. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]