Re: regular expression

2011-04-28 Thread Karl Kaufman
- Original Message - From: "Irfan Sayed" To: "John W. Krahn" ; "Perl Beginners" Sent: Thursday, April 28, 2011 9:28 AM Subject: Re: regular expression my logic was to just put the space character in place of comma and keep rest as it is but unfortunately that does not work Well

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Tiago Hori" To: Sent: Thursday, April 21, 2011 2:03 PM Subject: Real Beginner I was trying to do exercise 5 of the 5th edition of learning perl: ... 4. [10] Write a subroutine, named greet, that welcomes the person you name by telling them the name of

Re: Real Beginner

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Shlomi Fish" To: Cc: "Tiago Hori" Sent: Thursday, April 21, 2011 3:01 PM Subject: Re: Real Beginner On Thursday 21 Apr 2011 22:03:27 Tiago Hori wrote: print "Hi $name! "; You're missing a "\n". Naw, the original post indicates that they want a

Re: Nature of this list

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Rob Dixon" To: "Randal L. Schwartz" Cc: Sent: Thursday, April 21, 2011 12:21 PM Subject: Re: Nature of this list On 21/04/2011 17:25, Randal L. Schwartz wrote: People come online to learn Perl. Yes! But you have succumbed to Germanic syntax where as

Re: time format conversion

2011-04-21 Thread Karl Kaufman
- Original Message - From: "Rob Dixon" To: Cc: "shawn wilson" Sent: Thursday, April 21, 2011 1:14 PM Subject: Re: time format conversion On 21/04/2011 10:52, shawn wilson wrote: If its always in that format, just split and define a hash and pass it to dt. Otherwise, use dt:forma

Re: time format conversion

2011-04-21 Thread Karl Kaufman
Alternatives to shawn's response (w/o commenting on relative benefits)... - Original Message - From: "cc" To: Sent: Thursday, April 21, 2011 4:37 AM Subject: time format conversion Hi, I have two strings that shows different times and I want to find the difference in # of hours.

Re: Compiling and distributing Perl

2004-10-07 Thread Karl Kaufman
- From: "Jenda Krynicky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 07, 2004 9:10 AM Subject: Re: Compiling and distributing Perl > From: "Karl Kaufman" <[EMAIL PROTECTED]> > > Ok, I have a "sane compiler" toolset i

Compiling and distributing Perl

2004-10-07 Thread Karl Kaufman
Ok, I have a "sane compiler" toolset installed on my development server, but NOT on several servers on which I want Perl. (Where the development and production servers are the same architecture.) Can I build & install Perl on my development server, and then just distribute it as a tarball to the

How to attempt login to Windows server from Unix?

2003-02-24 Thread Karl Kaufman
Hi, I'm trying to automate creation of "login failure" Security Log entries on NT -- but want/need to be able to do so from a Unix server. Does anyone have suggestions on how to accomplish this (ideally using Perl)? Thanks in advance. Regards, Karl K. -- To unsubscribe, e-mail: [EMAIL PROTE

Re: Trouble with referencing hash entry

2003-02-04 Thread Karl Kaufman
Cupie doll for Mr. Pinyan... thanks! Both 'length' and (/^\w+$/) indicate an unprintable character in $_.Now to find out what it is and where it's coming from. (*argh*) Thanks! - Original Message - From: "Jeff 'japhy' Pinyan" <[EMAIL

Trouble with referencing hash entry

2003-02-04 Thread Karl Kaufman
Help,please...!, I'm dead in the water trying to understand why I'm unable to reference hash entries in what *I consider* to be a fairly straightforward manner. Any help/pointer is appreciated. The hash entries *must* exist because I can reference and print them using a literal key (or within

Re: Epoch midnight

2003-01-11 Thread Karl Kaufman
Deborah, I'll second Todd W's response, and warn you to avoid solutions doing direct math on the result of time(), as they disregard the effects of Daylight Saving Time and calendar adjustments since the epoch. Also, you can get the other midnight bookend for today, using Todd's method, though an

Re: Using map

2002-10-03 Thread Karl Kaufman
I, too, am interested in this syntax. I had to do the same juggling in order to "map" the values without affecting the original array -- and would prefer cleaner syntax if it's possible. Thx! Karl > @new_names = map { ($x = $_) =~ s/(jpg|gif)$/html/i; $x } @old_names; > > Is there a more el

Re: Mod Installations -- as non root

2002-09-12 Thread Karl Kaufman
And once you've installed the modules, you'll need to either append your "personal library" to the 'PERL5LIB' environment variable or include the 'use lib' pragma in your program. Karl - Original Message - From: drieux To: begin begin Sent: Thursday, September 12, 2002 6:58 P

Re: Having problems with AppConfig::Getopt module

2002-08-27 Thread Karl Kaufman
e values back into a 'key=value' pair before shipping them off to AppConfig::State's set() method. - Original Message - From: Karl Kaufman To: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 4:45 PM Subject: Having problems with AppConfig::Getopt module He

Re: Getopt::Long option prefix

2002-08-26 Thread Karl Kaufman
: [EMAIL PROTECTED] Sent: Monday, August 26, 2002 7:03 PM Subject: Re: Having problems with AppConfig::Getopt module Karl Kaufman wrote: >> For example: >> >> # test.pl -pagerdest [EMAIL PROTECTED] is the above another typo? should it be: test.pl --pagerdest [EMAIL PROTECTED]

Re: Having problems with AppConfig::Getopt module

2002-08-26 Thread Karl Kaufman
PROTECTED] Sent: Monday, August 26, 2002 5:12 PM Subject: Re: Having problems with AppConfig::Getopt module i have never used AppConfig::Getopt before... Karl Kaufman wrote: > For example: > > # test.pl -pagerdest [EMAIL PROTECTED] > > Should result in: > > %pager

MIME::Lite 'Datestamp' problem -- truncating timezone? (UT instead of UTC)

2002-08-26 Thread Karl Kaufman
Hello, I'm trying to determine whether there's a problem with the MIME::Lite module. I've sent an email to the module's author, but haven't heard back. Is there a "bugs" mailing list somewhere that I can post the following info to, in order to get verification and facilitate a fix. (It's my opi

Having problems with AppConfig::Getopt module

2002-08-26 Thread Karl Kaufman
Hello, I'm trying to use the 'AppConfig::Getopt' module to parse my command-line arguments, assigning the passed values to a hash. It's not working. And I need help. For example: # test.pl -pagerdest [EMAIL PROTECTED] Should result in: %pagerdest = { 'karl' => '[EMAIL PROTECTED]'