[OT] Problem with Winzip

2005-01-14 Thread Sisyphus
Hi, Sorry about this. I downloaded PDL-2.4.1.tar.gz from CPAN. It contains a (binary) file called 'm51.fits', among other things. When I open the .tar.gz file in Winzip, the size of 'm51.fits' is being correctly stated as 593,280 bytes (actual size of file). But when Winzip extracts that file,

RE: Sleep()

2005-01-14 Thread Jack D.
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris > Sent: January 14, 2005 2:28 PM > To: perl-win32-users > Subject: Sleep() > > Is there a way make Perl sleep for less than a full second? > > I'm using v5.8 on win2k. How come no one has me

Re: LWP::Simple could not retrieve issue

2005-01-14 Thread $Bill Luebkert
Hsu, David wrote: > Hi, > I am having is the following error when I try to execute the script via > a web browser. It seem to parse fine from the command line. > Could not retrieve http://www.infoworld.com/rss/news.xml at > c:\inetpub\wwwroot\rss\rss2html.pl line 38 > > I tried with several diff

RE: Sleep()

2005-01-14 Thread Peter Eisengrein
You might also check out these fine modules: Win32 Time::HiRes > -Original Message- > From: Allen, Matthew [mailto:[EMAIL PROTECTED] > Sent: Friday, January 14, 2005 4:36 PM > To: Chris; perl-win32-users > Subject: RE: Sleep() > > > sleep EXPR > sleep > Causes the script to sleep for

RE: selectrow_array question

2005-01-14 Thread John Deighan
At 12:02 PM 1/14/2005, Chris wrote: $dbh->disconnect; See: http://search.cpan.org/~timb/DBI-1.46/DBI.pm Unfortunately, I don't want to disconnect from the database. I just want to make sure that no further resources are tied up by the statement handle. -Original Message- > In the followin

Re: Sleep()

2005-01-14 Thread $Bill Luebkert
Chris wrote: > Is there a way make Perl sleep for less than a full second? > > I'm using v5.8 on win2k. A couple - Time::HiRes::usleep and Win32::Sleep use strict; use Time::HiRes qw(usleep); my $usecs = 3_750_000; for (1 .. 5) { print "sleeping 1\n"; usleep ($usecs); # or

RE: Sleep()

2005-01-14 Thread Jan Dubois
On Fri, 14 Jan 2005, Chris wrote: > Is there a way make Perl sleep for less than a full second? > > I'm using v5.8 on win2k. Win32::Sleep($time); $time is specified in milliseconds. Win32::Sleep() is part of core Perl on Windows and always available. Cheers, -Jan _

RE: Sleep()

2005-01-14 Thread Peter Guzis
use strict; use Time::HiRes 'sleep'; sleep .5; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Chris Sent: Friday, January 14, 2005 1:28 PM To: perl-win32-users Subject: Sleep() Is there a way make Perl sleep for less than a full second? I'm using v5.8 on

Re: Sleep()

2005-01-14 Thread Lyle Kopnicky
Chris wrote: Is there a way make Perl sleep for less than a full second? I'm using v5.8 on win2k. - Chris ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Just us

RE: Sleep()

2005-01-14 Thread Allen, Matthew
sleep EXPR sleep Causes the script to sleep for EXPR seconds, or forever if no EXPR. May be interrupted by sending the process a SIGALRM. Returns the number of seconds actually slept. You probably cannot mix alarm() and sleep() calls, because sleep() is often implemented using alarm(). On some o

Sleep()

2005-01-14 Thread Chris
Is there a way make Perl sleep for less than a full second? I'm using v5.8 on win2k. - Chris ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

LWP::Simple could not retrieve issue

2005-01-14 Thread Hsu, David
Hi, I am having is the following error when I try to execute the script via a web browser. It seem to parse fine from the command line. Could not retrieve http://www.infoworld.com/rss/news.xml at c:\inetpub\wwwroot\rss\rss2html.pl line 38 I tried with several different rss feed sites, all with th

Re: Discrepancy on time reported by system and localtime

2005-01-14 Thread M. Smith
At 07:55 PM 1/13/2005, you wrote: Allegakoen, Justin Devanandan wrote: > ---8< > ^Z on windoze > ---8< > ^D or ^Z I still have to hit enter after it. Unless theres a subtle > difference that I'm missing. True - you do have to hit CR (unlike UNIX's ^D). > Anyway, just

RE: EggExp Question

2005-01-14 Thread Gardner, Sam
Title: RE: EggExp Question See below, from perlre: So, your regex would be $phone_book_entry=~m/^Smith.+(?!John)/; (?!pattern) A zero-width negative look-ahead assertion. For example /foo(?!bar)/ matches any occurrence of ``foo'' that isn't followed by ``bar''. Note however that look-a

EggExp Question

2005-01-14 Thread Edwards, Mark (CXO)
Is there a regular expression to indicate a string you're looking for and one you're not looking for? Example: You want to find all the Smiths in a list but not Smith, John. So if you read each record from the list, the pseudo code would be something like: $phone_book_entry=~m/^Smith.+?not(John)

RE: selectrow_array question

2005-01-14 Thread Chris
$dbh->disconnect; See: http://search.cpan.org/~timb/DBI-1.46/DBI.pm -Original Message- > In the following code (where I create the statement handle myself, because > I want the option of using prepare_cached()), is the call to finish() > correct, redundant, bad, safe? I definitely on

selectrow_array question

2005-01-14 Thread John Deighan
In the following code (where I create the statement handle myself, because I want the option of using prepare_cached()), is the call to finish() correct, redundant, bad, safe? I definitely only want the results from a single row, even in cases where $sql may contain a statement that would norma