Re: connecting to multiple hosts using Net::SSH2

2009-03-06 Thread monnappa appaiah
Hi Gunnar, It worked, thanks a lot for helping out...thanks to all for helping Thanks, Monnappa On 3/5/09, Gunnar Hjalmarsson wrote: > monnappa appaiah wrote: >> This the error i'm getting >> >> Net::SSH2::connect: failed to connect to 10.10.10.1:22: Unknown error at >> co

Re: Date::CalC

2009-03-06 Thread Bobby
That works, thanks a lot for your help and suggestions guys!   Awsome! Have a great weekend all! --- On Fri, 3/6/09, Ryan Masters wrote: From: Ryan Masters Subject: Re: Date::CalC To: cybercruis...@yahoo.com Date: Friday, March 6, 2009, 5:28 PM Bobby, On Fri, Mar 6, 2009 at 5:45 PM, Bobby wr

Re: Date::CalC

2009-03-06 Thread Owen
On Fri, 6 Mar 2009 14:42:48 -0800 (PST) Bobby wrote: > > Hi, > > Could someone take a look at the code for me below and see if you can > figure out what's wrong with it? I just want to evaluate > $publish_date to see if it's with 21 days of the current date; if so > then set $new_item=" True".

Re: Date::CalC

2009-03-06 Thread Bobby
Correction, $publish_date should equals = "03/02/2009 12:32:03 PM" not 01/02/2009. my $publish_date = "03/02/2009 12:32:03 PM"; --- On Fri, 3/6/09, Bobby wrote: > From: Bobby > Subject: Date::CalC > To: beginners@perl.org > Date: Friday, March 6, 2009, 3:42 PM > Hi, > > Could someone tak

Date::CalC

2009-03-06 Thread Bobby
Hi, Could someone take a look at the code for me below and see if you can figure out what's wrong with it? I just want to evaluate $publish_date to see if it's with 21 days of the current date; if so then set $new_item=" True". Not sure why it's not doing that, I think the it's not evaluating

searching a script that use HTTP::Proxy

2009-03-06 Thread Michael Renner
Moin, as my first perl project I want to write a http proxy, that can modify headers. Because I don't belief that there is already such a script I'm searching for a simple proxy that use HTTP::Proxy as its basis. Any hint? Thanks -- |Michael Renner E-mail: michael.ren...@gmx.de | |D-815

Re: hashes + use constant - weird behavior

2009-03-06 Thread Chas. Owens
On Fri, Mar 6, 2009 at 03:31, "Stanisław T. Findeisen" wrote: > Chas. Owens wrote: >> >> SOME_CONSTANT is being interpreted as the string "SOME_CONSTANT". > > Why is it so? This is crazy. Because it is nicer to say $hash{key} than $hash{"key"} and Perl is optimized for the common case. When you

Re: finding modules via @INC

2009-03-06 Thread Rob Dixon
Jerald Sheets wrote: > On Mar 4, 2009, at 7:38 AM, Gunnar Hjalmarsson wrote: >> Jerald Sheets wrote: >>> >>> In your code you can specify the directory location of the pm: >>> use lib '/path/to/pm'; >> >> That makes no sense. It would cause Perl to look for >> >>/path/to/pm/XML/Handler/YAWriter

Re: hashes + use constant - weird behavior

2009-03-06 Thread Jenda Krynicky
From: "Stanisław T. Findeisen" > Chas. Owens wrote: > > SOME_CONSTANT is being interpreted as the string "SOME_CONSTANT". > > Why is it so? This is crazy. Because most often you want it that way. Most often you do want the $hash{BLAHBLAH} to mean $hash{'BLAHBLAH'} and not have to put qu

Re: hashes + use constant - weird behavior

2009-03-06 Thread Paul Johnson
On Fri, Mar 06, 2009 at 09:31:44AM +0100, "Stanisław T. Findeisen" wrote: > Chas. Owens wrote: >> SOME_CONSTANT is being interpreted as the string "SOME_CONSTANT". > > Why is it so? This is crazy. Were it not so, every time you created a sub with the same name as one of your hash keys you would f

Re: hashes + use constant - weird behavior

2009-03-06 Thread Stanisław T. Findeisen
Chas. Owens wrote: SOME_CONSTANT is being interpreted as the string "SOME_CONSTANT". Why is it so? This is crazy. This is one of the drawbacks to the constant pragma. Change the code hash keys to one of these and it will work the way you want it to: $hash{+SOME_CONSTANT} #unary plus What