Re: LWP getting special (multibyte) characters from webpages

2008-12-26 Thread John Refior
> The file is already in UTF-8, otherwise it wouldn't display properly > in Firefox or IE. The problem is either your display or perl doesn't > know that the file is in UTF-8. > > The first step is make sure Perl knows it is working with UTF-8. Add > > export PERL_UNICODE=SDL > > to your .profile

Question on using Win32::IEAutomation

2008-12-26 Thread Collaborate
I have a few applications where I can effectively use the Win32:IEAutomation module. I am making sure I understand how it works and had some difficulty. For example, I am not able to print the URL of a webpage using the code below. I’d appreciate your comments on how to modify the code. #!C:\Perl

Re: LWP getting special (multibyte) characters from webpages

2008-12-26 Thread Chas. Owens
On Fri, Dec 26, 2008 at 15:03, John Refior wrote: snip > The problem I am having is that a number of these webpages have special > multibyte characters on them, such as the trademark symbol and registered > trademark symbol. For example, in the CSV, the trademark (TM) symbol > shows up like > >

LWP getting special (multibyte) characters from webpages

2008-12-26 Thread John Refior
Hello, I am writing Perl scripts that go to webpages, download certain content, and then create a CSV file with the relevant data. I am trying to be a friendly web robot, so I am using the LWP::RobotUA module. my $ua = LWP::RobotUA->new('product_name', 'my_email'); $ua->delay(1/60); #

Re: implementing algo

2008-12-26 Thread Jenda Krynicky
From: "Sharan Basappa" > Hi Jenda, Rob, Shawn, > > I am attaching a sample flowchart figure. > > Step1 and Step2 are the process steps and D1 and D2 are the decisions. > > Will this code translate to the foll in perl? > > do > { > do > { > step1 > } while (D1) > step2 > } while

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error? ** Please chec

Thread managment in Perl

2008-12-26 Thread perl pra
Hi All, I am able to create simaltaneous threads and access a subroutine(which performs firing of reqeusts). with the created threads. Some time I get the following error *"Free to wrong pool 225f40 not 13ddbd50 at C:/Perl/lib/constant.pm line -1." .*Whats the reason for the error? ** Please chec

Re: copying a webpage and pasting to a text file

2008-12-26 Thread Octavian Rasnita
Or search for Finance or Quotes with search.cpan.org because there are more perl modules that can be used for downloading stock quotes. Octavian - Original Message - From: "Bob goolsby" To: "Chas. Owens" Cc: Sent: Friday, December 26, 2008 4:09 AM Subject: Re: copying a webpage and

Re: hwo to get time in milliseconds

2008-12-26 Thread Chas. Owens
On Fri, Dec 26, 2008 at 04:30, perl pra wrote: > hi All, > > I need to get current time in milliseconds. > > Any pointers would be highly appreciated > > thanks, > siva > The gettimeofday function from the Time::HiRes module* will give you the number of ms since the epoch (1970-01-01 00:00:00):

hwo to get time in milliseconds

2008-12-26 Thread perl pra
hi All, I need to get current time in milliseconds. Any pointers would be highly appreciated thanks, siva