why getstore can't work, especially for store xml file on freebsd

2005-05-23 Thread Franklin
Hi; I have a small program that uses getstore to fetch a xml webpahe and store it. It is: use strict; use warnings; use LWP::Simple; my $xmlurl="http://www.sec.gov/Archives/edgar/data/903404/000118143105029692/rrd79736.xml";; my $xmlfile="xml.xml"; my $status=getstore($xmlurl,$xmlfile); if(is

Re: undefined...

2005-05-23 Thread Offer Kaye
On 5/23/05, Ley, Chung wrote: > > Use of uninitialized value in array element at > /usr/lib/perl5/site_perl/5.8.0/GD/Graph/boxplot.pm line 470. Do a dump of the data passed to GD that causes this warning, make sure you are not passing any uninitialized data. > I am dumbfounded... I am thinking

Re: assigning printf statement to an array

2005-05-23 Thread John Doe
Am Montag, 23. Mai 2005 20.05 schrieb [EMAIL PROTECTED]: > Hi all. > > This is a continuation from my original question, but with a twist. I am > now using sprintf to assign to an array, but I only want to assign to this > array of I find a number over 100 from my calculation. In the array/ha

RE: undefined...

2005-05-23 Thread Ley, Chung
Thanks... I didn't know the use of Data::Dumper, wish I had known it earlier... Basically, I was trying to mimic what the Boxplot.pl was doing, and so I did a loop like this: for (my $k; defined $data[0][1][$k]; $k++ ) { print "data[0][1][$k] is defined\n";

freebsd / ifconfig

2005-05-23 Thread Chris Knipe
Hi, Is there any modules available to manipulate devices (similar to ifconfig) in perl? Basically, I need to give it a IP address, it must find out what interface the IP belogs to, and what pid opened the interface ??? Just thought I'd ask first, would be really sweet if something exist. --

Re: assigning printf statement to an array

2005-05-23 Thread DBSMITH
Hi all. This is a continuation from my original question, but with a twist. I am now using sprintf to assign to an array, but I only want to assign to this array of I find a number over 100 from my calculation. In the array/hash also needs to be the directory name. Here is my code and the s

Re: efficiency of hash of hashes/lists

2005-05-23 Thread Peter Rabbitson
On Mon, May 23, 2005 at 01:40:08PM -0400, Zhenhai Duan wrote: > I tried hash (where the members of a group are joined with ":"), and hash > of hash. It happended that hash of hash is slower than single hash. > > Hash: > $groups{$g1} = "$member1:$member2"; > > > Hash of hash > $groups{$g1}{$memb

Re: efficiency of hash of hashes/lists

2005-05-23 Thread Zhenhai Duan
I tried hash (where the members of a group are joined with ":"), and hash of hash. It happended that hash of hash is slower than single hash. Hash: $groups{$g1} = "$member1:$member2"; Hash of hash $groups{$g1}{$member1} = 1; Method 1 is faster, even I need to do a split to get the members. -

Re: XML::LibXML on Cygwin

2005-05-23 Thread Gerrit P. Haase
marcos rebelo wrote: Just for the record: The subject is wrong, XML::XSLT is correct. XML::LibXML works ok: All tests successful, 1 test skipped. Files=22, Tests=1090, 75 wallclock secs (37.12 cusr + 25.31 csys = 62.44 CPU) /bin/make test -- OK It is possible to install this Perl module i

Re: 答复: Can erpl support recursice call?

2005-05-23 Thread Xavier Noria
On May 23, 2005, at 9:53, John Doe wrote: My guess is that your recursive sub follows this schema: # schematic sub foo() { open FH, $filename; foo() unless $stop_condition; close FH; } Is there a specific reason to repeatedly open and close the same

答复: 答复: Can erpl support recursice call?

2005-05-23 Thread bingfeng zhao
OK, assume you write a text file parser. the file maybe "include" other file. The parse open the file first and parse it. when it encounter the "include" specifier, it must call itself (the sub routine) to parse the included file, and then continue parse the including file. In each call, the op

Re: 答复: Can erpl support recursice call?

2005-05-23 Thread John Doe
Am Montag, 23. Mai 2005 08.57 schrieb Xavier Noria: > On May 23, 2005, at 7:24, bingfeng zhao wrote: > > I'm sorry I may misled by the question. the real qurstion I met is not > > recursicve but another one involve recursive. > > > > In the sub, I open a file and then call the same sub recursively.

答复: 答复: Can erpl support recursice call?

2005-05-23 Thread bingfeng zhao
Great, that the case I encountered! I'll try again with your solution. thanks what meanings of "*" in "local * FH"? pointer? |-邮件原件- |发件人: Xavier Noria [mailto:[EMAIL PROTECTED] |发送时间: 2005年5月23日 14:57 |收件人: beginners@perl.org |主题: Re: ´ð¸´: Can erpl support recursice call? | |On

Re: XML::LibXSLT on Cygwin

2005-05-23 Thread marcos rebelo
This email has already sent but is about the XML::XSLT It is possible to install this Perl module in the Cygwin. When I do 'perl Makefile.pl' the script blows up and creats the file 'perl.exe.stackdump' I changed the code of the Makefile.pl inside the 'sub backtick' from open(STDOUT, ">$