Can anyone spot the problem with this script?

2004-01-04 Thread Gary Nielson
I have written a stock program that imports data from files, takes the ticker and other data, goes out to Yahoo to get various data using HTML::TableExtract, and then analyzes that data. My problem: I know the various parts work, but the program keeps returning the same results for each ticker,

Struggling with my first XML::Parser project

2003-11-09 Thread Gary Nielson
I have partially written a program to parse National Weather Service alerts. But I am struggling to figure out how to parse the file so that if there an urgent alert, say, for a specific geocode or area, I can grab the headline and description for that geocode. I am working off the examples in

Uncaught exception from user code with XML::Parser

2003-11-06 Thread Gary Nielson
I am learning to use XML::Parser. I am trying to pass a US Weather Service xml file. I can successfully parse it until it dies on me with the following error: C:\TEMP\xmlperl weather.pl Uncaught exception from user code: not well-formed (invalid token) at line 14580, column 1, byte 477680 at

RE: Uncaught exception from user code with XML::Parser

2003-11-06 Thread Gary Nielson
://www.nws.noaa.gov/alerts/us.html#KYZ044.JKLNOWJKL.145500 /cap:web -Original Message- From: David Liouville [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:41 PM To: Gary Nielson; [EMAIL PROTECTED] Subject: Re: Uncaught exception from user code with XML::Parser It's

RE: Uncaught exception from user code with XML::Parser

2003-11-06 Thread Gary Nielson
I replaced it and got the same exception error on line 14634 which contains the same . Mmm, interesting ... Up until that point, $$ is used instead of . -Original Message- From: David Liouville [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:56 PM To: Gary Nielson

Perl tools for Outlook?

2003-09-12 Thread Gary Nielson
Hi, I wrote a unix perl script that monitored a mailbox, and when certain mail came in, parsed the Subject line, did some calculations and emailed the results to a list of people. I would like to use perl to do this in Outlook 2000. Is this possible with perl? I have only recently started using

Interested in thoughts on how to hand off to mirror of script on another server

2003-08-05 Thread Gary Nielson
I have a script that I would like to run no matter what during the day. Of course, if there's a power outage or storm, equipment or network problems, that script isn't *always* going to run. Since my computer is on a UPS, I am thinking that somehow I would be able to find out when the server is

Help pinpointing source of error message

2002-11-04 Thread Gary Nielson
Hi, there: I am calling a subroutine that's contained in its own file, splits.pl. If I run splits.pl on its own, calling the right modules at the top, I do not get the warning message reported below. But when I call it from another file, stocks.pl, I do get the warning -- though the subroutine

Help pinpointing source of warning message

2002-11-04 Thread Gary Nielson
Hi, there: I am calling a subroutine that's contained in its own file, splits.pl. If I run splits.pl on its own, calling the right modules at the top, I do not get the warning message reported below. But when I call it from another file, stocks.pl, I do get the warning -- though the subroutine

Adding keys and values to HTML::Template param

2002-10-18 Thread Gary Nielson
Could someone help me understand how something can be done with hashes and HTML::Template. I am struggling to understand modules and object-oriented programming in perl. OK, HTML::Template has you create a hash whose values are used by a template. Construction is like this: $template-param(

RE: Adding keys and values to HTML::Template param

2002-10-18 Thread Gary Nielson
the object while processing the template - very nice. regards, A. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs -- Gary Nielson National Producer - Knight Ridder

Keeping hash in insertion order, using Tie-IxHash

2002-09-26 Thread Gary Nielson
I have an array I've created that contains 10 years of annual eps data for companies. A perl script then calculates the percentage growth rate from year to year and pushes the results into @results. I then combine the two arrays into a hash (using tutorial I found at

Eval and Net::FTP

2002-09-04 Thread Gary Nielson
I am wanting to test to make sure that an ftp transfer in fact takes place. Searching through newsgroups, saw several recommendations re: Perl Cookbook's 16.21, which I have used below. I think I have done this correctly -- code below -- but will this be enough? I am assuming that if the script

Questions about financial modules for perl

2001-12-28 Thread Gary Nielson
Does anyone know of any modules for perl that can perform the types of calculations of a financial calculator? Also, I know about Finance::Quote, but is there a perl module that can get historical data, such as earnings per share over the last 5-10 years, assets and liabilities, and that sort of

Re: Reading a file from point A to B

2001-04-16 Thread Gary Nielson
Pomponio email: [EMAIL PROTECTED] Georgia Tech Research Institute phone: (404) 894-7196 Electronic Systems Laboratory FAX: (404) 894-7080 -- Gary Nielson [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL

Is there a better way to code my templating system?

2001-04-08 Thread Gary Nielson
uot; } else { print "a href=\"$url\"$title/a\nbsp\;\nbsp\;"; } } # print @array; close HEADER; print"eof"; /CENTER /TD /TR TR TD VALIGN="TOP" HEIGHT="575" eof $name =~ s/html/txt/; $body = "$root\/$directory\/$name"; open(BODY, "\/$body"); @array = BODY; print @array; close BODY; print"eof"; /TD /TR TR TD VALIGN="TOP" CENTER eof open(FOOTER, "footer.txt"); @array = FOOTER; print @array; close FOOTER; print "eof"; /CENTER /TD /TR /TABLE eof -- Gary Nielson [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

cgiwrap problem with a script

2001-04-01 Thread Gary Nielson
tion /td td valign=top $code /td /tr HTML } print "/table"; close A; -- Gary Nielson [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Use strict vars, using my and hashes

2001-02-14 Thread Gary Nielson
ot;). Execution of ./test.pl aborted due to compilation errors (#2) -- Gary Nielson [EMAIL PROTECTED] ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

HTML::TokeParser question re: scalar variables

2001-02-10 Thread Gary Nielson
am trying to do: $p = HTML::TokeParser-new(shift||$stories); which is producing the error: Unsuccessful open on filename containing newline at /usr/lib/perl5/5.00503/i386-linux/IO/File.pm line 164. Can't call method "get_tag" on an undefined value at ./head3.cgi line 22. Any help apprec

Re: Trouble with lookbehind in regular expression using File::Find

2001-02-06 Thread Gary Nielson
, and 2) they either can or don't have to have an L or an l and the end? Thanks for your help. On Mon, 5 Feb 2001, $Bill Luebkert wrote: Gary Nielson wrote: Hi, I have been struggling with getting a lookbehind match to work. Using File::Find, I want to: 1) search for every file

Perl CGI problem importing quotation marks into form

2001-01-06 Thread Gary Nielson
Hi, I noticed a problem with a cgi script I am writing that generates a form. The user fills out the form, the contents of which I use in other programs. If the user wants to edit her form, she simply later calls up the script using the query string environment variable tacked on to the end of