Re: discussing good style

2008-02-22 Thread Robert W Weaver
Dave Golden wrote: Jan Dubois wrote: So any feedback on the style /content would be welcome. I really liked that you discussed good style and some defensive coding, even though that wasn't required by the competition. open or die -- I personally think it's good style to die with at least

Re: Perl-Win32-Users Digest, Vol 19, Issue 15

2008-02-25 Thread Robert W Weaver
David Golden [EMAIL PROTECTED] wrote on 02/23/2008 03:00:19 PM: Well, it was written to be clever, not maintainable. :-) Point taken. I did mention that I was probably going to far in what was just a game. :-) In response to Conway: clever algorithms are good; clever code is not so good.

Re: printing html with hardcoded page breaks ???

2008-05-21 Thread Robert W Weaver
[EMAIL PROTECTED] wrote on 05/21/2008 03:00:25 PM: Date: Tue, 20 May 2008 16:39:53 -0500 From: Mike Schleif [EMAIL PROTECTED] Subject: printing html with hardcoded page breaks ??? How can I build a web page that, when printed, breaks the web page into multiple printed pages, which break at

Re: Perl-Win32-Users Digest, Vol 28, Issue 8

2008-11-20 Thread Robert W Weaver
Foo JH [EMAIL PROTECTED], on 20 Nov 2008 10:40:13 +0800 wrote: Fish, David wrote: Hello! The problem I am having is I am pulling data from a table in a certain order and loading it into the hash array but when I read the hash array it comes out in a different order than it is written.

perl won't alarm?

2011-02-23 Thread Robert W Weaver
I have code that executes an external command, vis: eval { local $SIG{ALRM} = sub { die alarm\n }; alarm $TIMEOUT; $text = `$pre_command$host $post_command` || ( $connectOk = 0 ); alarm 0; $errStr = $^E; }; The command hangs for a reason I don't understand (its a PsExec

RE: Isn't there a way to set variables in a loop?

2012-01-30 Thread Robert W Weaver
Ken Slater kl...@psu.edu wrote: You could just store the names in an array, but I'm assuming you need to access a specific file at some point. I just wanted to follow up and perhaps clarify that. What I read is What I want to do is stick the same drive letter/directory path on the front of

Re: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-04 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/04/2012 03:00:03 PM: I have a need to determine which client machine a given user (or all users) has logged into the domain from. I'm willing to back into it by starting with all client machines. I'm If you can access via WMI,

RE: Perl-Win32-Users Digest, Vol 70, Issue 1

2012-06-05 Thread Robert W Weaver
Barry Brevik bbre...@stellarmicro.com wrote on 06/04/2012 06:34:07 PM: Thank you for the detailed response, even if it is depressing. Don't think of it as depressing, think of it as an opportunity. Gathering all your logs could provide more insight into your environment. Attached is a toy I

Re: Perl-Win32-Users Digest, Vol 70, Issue 2

2012-06-05 Thread Robert W Weaver
perl-win32-users-boun...@listserv.activestate.com wrote on 06/05/2012 03:00:02 PM: A non-text attachment was scrubbed... Name: pullFromEventLog.pl It was a text attachment, you silly little program... Well, I don't know how to get my mailer to send text only, so I can't blame it much. Its

Re: why does perl critic not like @_

2014-08-19 Thread Robert W Weaver
John wrote: I have just started using perl critic to analyse my code. I have often used @_ as a temporary array like this: [..] Critic complains with 'Always unpack @_ first', why? What is so wrong with this usage? anthony.okusa...@usbank.com gave an excellent response to what perl critic