Re: Date difference.

2006-04-05 Thread hridyesh pant
Thanks Thomas i got it. Regards Hridyesh Thomas Bätzler wrote: Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can

Re: Date difference.

2006-04-05 Thread James Turnbull
hridyesh pant wrote: Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can someone help me. Excellent summary of most met

Re: Date difference.

2006-04-05 Thread Owen Cook
On Thu, 6 Apr 2006, hridyesh pant wrote: > Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of days between these two dates. > Can someone help

RE: Date difference.

2006-04-05 Thread Thomas Bätzler
Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of days between these two dates. > Can someone help me. Have a look at Steffen Beyer's excelle

RE: Date difference.

2006-04-05 Thread Ankur Gupta
hridyesh pant scribbled on Wednesday, April 05, 2006 11:25 PM: > Hi, > i have two date string reading from the log file like below. > $date1="Mon Mar 27 02:45:15 2006"; > $date2="Wed Apr 5 23:20:46 2006"; > > $Number_of_Days = $date1-$date2; > i want to get number of d

Date difference.

2006-04-05 Thread hridyesh pant
Hi, i have two date string reading from the log file like below. $date1="Mon Mar 27 02:45:15 2006"; $date2="Wed Apr 5 23:20:46 2006"; $Number_of_Days = $date1-$date2; i want to get number of days between these two dates. Can someone help me. Thanks Hridyesh -- To unsubscribe, e-mail: [E

RE: perl help : escape character

2006-04-05 Thread Irfan J Sayed
Thanks raymond . it's working now. Regards Irfan Sayed "Raymond Raj" <[EMAIL PROTECTED]> 04/06/2006 11:23 AM Please respond to <[EMAIL PROTECTED]> To Irfan J Sayed/India/[EMAIL PROTECTED], cc Subject RE: perl help : escape character > -Original Message- > From: Irfan J S

RE: perl help : escape character

2006-04-05 Thread Raymond Raj
> -Original Message- > From: Irfan J Sayed [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 06, 2006 11:29 AM > To: beginners@perl.org > Subject: perl help : escape character > > > Hi All, > > I am running following clearcase command > > my @activity = `$CT lsactivity -short -invob

perl help : escape character

2006-04-05 Thread Irfan J Sayed
Hi All, I am running following clearcase command my @activity = `$CT lsactivity -short -invob \Irfan_Test`; where \Irfan_Test is the vob tag but it is giving me following error. Unrecognized escape \I passed through at C:\irfan\TESTSE~1.PL line 31. The system cannot find the path specified.

RE: How to manage around 1000 entries which will constantly be changing

2006-04-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Wagner, David --- Senior Programmer Analyst --- WGO wrote: > On 4/1/06, Frank Bax <[EMAIL PROTECTED]> wrote: >>> At 06:59 PM 3/31/06, Mr. Shawn H. Corey wrote: >>> On Fri, 2006-31-03 at 15:45 -0800, Tom Phoenix wrote: > You should loop over the input, pushing each item on to an array. >>>

RE: Local Server/Perl/HTML question...

2006-04-05 Thread Ron Smith
--- Jim <[EMAIL PROTECTED]> wrote: > > > > > I have just downloaded xitami and gotten it > configured - I > > hope correctly - on my W2K professional system. > I've > > installed PERL as well. > > I put a PERL .PL in c:\xitami\cgi-bin and tried > running it > > by using my IE browser to run

RE: Using Sort::Maker

2006-04-05 Thread Kent, Mr. John \(Contractor\)
Greetings, Never mind. Got the following to work OK: my $sorter = &Sort::Maker::make_sorter(qw(ref_in ref_out), qw(ST), number => '/(\d+\.\d+)/', 'descending', 'unsigned_float', ) or die "Can't make sorter [EMAIL PROTECTED]";

Using Sort::Maker

2006-04-05 Thread Kent, Mr. John \(Contractor\)
Greetings, I'm having some trouble using Sort::Maker and was hoping someone could assist. I have very large arrays of file names that look like: my @ARRAY = qw{ 20060312.1230.goes10.ir.x.pacus.x.jpg 20060324.1500.goes10.ir.x.pacus.x.jpg 20060405..goes10.ir.x.pacus.x.jpg 20060312.1300.goes

Re: Perl help

2006-04-05 Thread Irfan J Sayed
Thanks Chas Regards Irfan Sayed "Chas Owens" <[EMAIL PROTECTED]> 04/05/2006 10:53 PM To Irfan J Sayed/India/[EMAIL PROTECTED] cc beginners@perl.org Subject Re: Perl help On 4/5/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote: > Hi, > > I have printed one statement in perl . now i want to

Re: Perl help

2006-04-05 Thread Chas Owens
On 4/5/06, Irfan J Sayed <[EMAIL PROTECTED]> wrote: > Hi, > > I have printed one statement in perl . now i want to print another > statement on second line . > > i just wanted to know that what is the syntax in perl to go to the next > line ? > > Plz let me know. > > Regards > Irfan Sayed to get a

Re: %Re: Perl help

2006-04-05 Thread Irfan J Sayed
Thanks david. Regards Irfan Sayed David Gama Rodrí­guez <[EMAIL PROTECTED]> 04/05/2006 10:37 PM To Irfan J Sayed/India/[EMAIL PROTECTED] cc beginners@perl.org Subject %Re: Perl help Irfan J Sayed wrote: >Hi, > >I have printed one statement in perl . now i want to print another >sta

Perl help

2006-04-05 Thread Irfan J Sayed
Hi, I have printed one statement in perl . now i want to print another statement on second line . i just wanted to know that what is the syntax in perl to go to the next line ? Plz let me know. Regards Irfan Sayed

Re: How to use IP Address from VPN instead of Primary?

2006-04-05 Thread Lawrence Statton
> I'm using the LWP, HTML::Parser, HTTP::Request::Common and other packages > retrieve some infromation from some web sites which require I have a certain > IP address. I'm using a VPN to connect to this network. How can I tell perl > to use the secondary IP address aquired by means of the VPN inst

Re: only one of two hash keys

2006-04-05 Thread Jay Savage
On 4/4/06, Lawrence Statton <[EMAIL PROTECTED]> wrote: > > Is there a nice clean perl way to test to see if only one key of a hash > > has data? > > > > %some_hash = ( key1 => 1, key2 => 2 ); should fail the test > > %some_hash = ( key2 => 2 ); should pass the test > > %some_hash = ( key1 => 1 ); s

Re: simple profiling?

2006-04-05 Thread Peter Scott
On Tue, 04 Apr 2006 16:08:31 -0700, Bryan R Harris wrote: > SmallProf is quite impressive, I wonder how it does that? perldoc perldebguts -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: only one of two hash keys

2006-04-05 Thread John Ackley
perl wrote: Is there a nice clean perl way to test to see if only one key of a hash has data? %some_hash = ( key1 => 1, key2 => 2 ); should fail the test %some_hash = ( key2 => 2 ); should pass the test %some_hash = ( key1 => 1 ); should pass the test Thank you print keys(%some_hash) == 1

How to use IP Address from VPN instead of Primary?

2006-04-05 Thread Siegfried Heintze
I'm using the LWP, HTML::Parser, HTTP::Request::Common and other packages retrieve some infromation from some web sites which require I have a certain IP address. I'm using a VPN to connect to this network. How can I tell perl to use the secondary IP address aquired by means of the VPN instead of m

Re: Help Required on the Script

2006-04-05 Thread Mazhar
thanks Jamie. It is Working. Regards Mazhar On 4/5/06, Jaime Murillo <[EMAIL PROTECTED]> wrote: > > On Tuesday 04 April 2006 23:46, Mazhar wrote: > > Hi Guyz, > > Hi Mazhar, > > > i am writin a script to automate the command snmpwalk by > > reading the contents of a file. Below is th

Re: Help Required on the Script

2006-04-05 Thread Jaime Murillo
On Tuesday 04 April 2006 23:46, Mazhar wrote: > Hi Guyz, Hi Mazhar, > i am writin a script to automate the command snmpwalk by > reading the contents of a file. Below is the snippet > > $file_name="somefile.txt"; > > open(FILE,"< $file_name"); > > while() > { > my $ip; >

Re: Sorting hash values

2006-04-05 Thread Jeff Pang
> >And it doesn't work. Any help is appreciated. > Hello,I'd modify your script as follow,and it could work for me. use strict; use warnings; my %rules_new = (aaa => [11,22,33,44], bbb => [55,66,77,88], ); for my $rule (sort {&compute_probability($b) <=> &compu

RE: Help Required on the Script

2006-04-05 Thread Raymond Raj
> -Original Message- > From: Mazhar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 05, 2006 12:16 PM > To: beginners@perl.org > Subject: Help Required on the Script > > > Hi Guyz, > i am writin a script to automate the command > snmpwalk by reading > the contents of a fil