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,
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
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
://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
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
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
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
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
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
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(
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
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
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
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
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
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
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
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
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
, 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
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
21 matches
Mail list logo