Re: Hash Key function puzzlement -- a point of information query

2012-05-03 Thread Aaron Hawryluk
What Leo said. keys(%hash) returns the keys from the hash as an array, you can't assign to it AFAIK. On Thu, May 3, 2012 at 10:18 AM, Leo Susanto leosusa...@gmail.com wrote: keys is a function, it doesn't take in value On Thu, May 3, 2012 at 9:08 AM, Rothenmaier, Deane

Re: yet again, revealing my ignorance. this time re: parallel processing

2011-08-23 Thread Aaron Hawryluk
I would strongly recommend Programming Perl, Third Edition. The chapter on using Thread.pm (Chapt. 17 I think) is extremely useful and will give you a good idea of how to build a multi-threaded Perl application (and how NOT to build one). Parallelism can be difficult. A new edition is rumoured to

Re: I haven't seen any traffic on this list for two weeks

2009-12-31 Thread Aaron Hawryluk
Amazing if true, that would double Apple's current market share roughly... ;-) On Thu, Dec 31, 2009 at 6:18 PM, Jack goodca...@hotmail.com wrote: Maybe everybody bought a Mac for Xmas grin Jack -Original Message- From: perl-win32-users-boun...@listserv.activestate.com

Re: need help from a new hand for perl

2009-08-18 Thread Aaron Hawryluk
Hi Fei Shi, It looks like your auto_blast.pl is not set up to run on Windows. Those are UNIX system commands that it's erroring on (rm, cp, cat). On Tue, Aug 18, 2009 at 3:39 PM, Fei Shijustfly2...@gmail.com wrote: Hi, Dear perl experts: I am a new hand of perl. I use perl because I

Re: FW: question about recursion (pseudo-code if helpful)

2009-05-21 Thread Aaron Hawryluk
Wouldn't this work? Not that I know off the top of my head, but I've used similar structures in the past (not for heavy calculation work mind you, mostly for lexical parsing loops...) our $answer = recursive_function (initial parameter list); sub recursive_function { my $answer; some

Re: LWP Help please

2009-05-17 Thread Aaron Hawryluk
use LWP::UserAgent; my $ua = new LWP::UserAgent; my $url = http://www.google.ca/search?q=perl+lwp+tutorial;; my $response = $ua-get($url); if($response-content_type ne text/html){ die(Recieved content-type .$response-content_type., was looking for text/html.) } my $content =

FW: perl / javascript and MD5

2006-03-22 Thread Aaron Hawryluk
Hm, my replay got sent to the bounces address... Reposting to list. -Original Message- From: Aaron Hawryluk [mailto:[EMAIL PROTECTED] Sent: March 22, 2006 1:16 PM To: 'Hon Shi' Cc: 'perl-win32-web@listserv.ActiveState.com' Subject: RE: perl / javascript and MD5 Digest::MD5 produces

RE: Prevent Loading from Cache in Internet Explorer

2005-06-11 Thread Aaron Hawryluk
I think what he means is he wants to know how to set headers to disable caching. #!/usr/bin/perl use CGI; my $q = new CGI(); print $q-header(-type='text/html', -expires='-1d'); #Expire the content yesterday - forces browsers to refresh -Original Message- From: