Re: install non-current version module from cpan shell

2007-12-13 Thread Tom Phoenix
On 12/12/07, jeff pang <[EMAIL PROTECTED]> wrote: > I want to install Apache::Scoreboard v0.15 (b/c I'm using mp1) from > cpan shell. But the current version is 2.08. How can I install the > specified version of a module from cpan shell? Does anything good happen if you give the CPAN shell this c

Re: Help on regular expression

2007-12-13 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: > > From: Rob Dixon [mailto:[EMAIL PROTECTED] >> >> Sayed, Irfan (Irfan) wrote: >>> >>> Hi All, >>> >>> I have a string like this >>> >>> CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular >>> expression what I want is only those characters before closing

Re: Most dependable way to run system commands

2007-12-13 Thread Steve Bertrand
[snip] >> I essentially need to know that ALL 500k elements were successful, >> otherwise, I need to know where it broke and where it stopped. >> >> This is a billing situation so it has to be accurate. I'd rather ensure >> (by doing manual double-entry checking) accuracy then having to go >> thro

Re: Use of uninitialized value in numeric eq (==)

2007-12-13 Thread Paul Lalli
On Dec 12, 9:45 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > protoplasm schreef: > > > foreach (keys %opts_hash) > > { > > if ( !defined $opts_hash{$_} ) > > { > > next; > > } > > elsif ( $opts_hash{$_} == 1 ) > > { > > print "$_ = $opts_hash{$_}\n"; > > } > > } > > An alternative w

RE: Help on regular expression

2007-12-13 Thread Sayed, Irfan (Irfan)
Thanks Rob. It really helped. I got what I want. Request you to please explain me in detail how you did this. I did not understand much. Please guide. Regards Irfan. -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 6:21 PM To: beginners

Re: Help on regular expression

2007-12-13 Thread Rob Dixon
Sayed, Irfan (Irfan) wrote: Hi All, I have a string like this CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular expression what I want is only those characters before closing braces excluding white space character. I mean to say that if regular expression encounter the white

Re: Not catching HUP signal - Perl Sybase

2007-12-13 Thread Chas. Owens
On Dec 12, 2007 10:57 PM, NewbeeUnix <[EMAIL PROTECTED]> wrote: > Sorry for replying late... > The task that I want to achieve is to catch the HUP signal and send > notification about the process. But due to addition of sybase::ctlib > it catches the signal and my program fails. > Another issue is

Re: array modification

2007-12-13 Thread Jenda Krynicky
From: "Chas. Owens" <[EMAIL PROTECTED]> > Yes, but I am the one making pronouncements about how people should > code. Rob was just calling me on being a little pompous. I still > think that use of $_ in places other than the start of a loop (with a > function that uses the default variable like s

Re: Help on regular expression

2007-12-13 Thread Chas. Owens
On Dec 13, 2007 6:12 AM, Sayed, Irfan (Irfan) <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a string like this > > CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular > expression what I want is only those characters before closing braces > excluding white space character. I mean to

Re: array modification

2007-12-13 Thread John W . Krahn
On Thursday 13 December 2007 03:52, Jenda Krynicky wrote: > > From: John W.Krahn <[EMAIL PROTECTED]> > > > On Wednesday 12 December 2007 07:15, Jenda Krynicky wrote: > > > From: jeff pang <[EMAIL PROTECTED]> > > > > > > > > You can add a "\n" (or "\r\n" on windows,etc) at the end of > > > > each el

Re: array modification

2007-12-13 Thread Jenda Krynicky
From: John W.Krahn <[EMAIL PROTECTED]> > On Wednesday 12 December 2007 07:15, Jenda Krynicky wrote: > > From: jeff pang <[EMAIL PROTECTED]> > > > > > --- "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> wrote: > > > > My query is that can i store the output of this for loop in > > > > variable or > > > >

Re: Help on regular expression

2007-12-13 Thread jeff pang
--- "Sayed, Irfan (Irfan)" <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a string like this > > CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular > expression what I want is only those characters before closing > braces > excluding white space character. I mean to say that

Help on regular expression

2007-12-13 Thread Sayed, Irfan (Irfan)
Hi All, I have a string like this CLEARCASE_CMDLINE = (mkact -nc notme sprint) Now with the regular expression what I want is only those characters before closing braces excluding white space character. I mean to say that if regular expression encounter the white space character then it should

Re: Write the output to a file

2007-12-13 Thread Dermot
On 12/12/2007, Chas. Owens <[EMAIL PROTECTED]> wrote: > > On Dec 12, 2007 7:08 AM, Dr.Ruud <[EMAIL PROTECTED]> wrote: > > > Your last comment line ("it will close here") I would put inside the > > block, or I would say "is closed with the block". > > (I am all for lexical comments.) > snip > > I ca

Re: poll

2007-12-13 Thread Yogesh Sawant
On Dec 12, 6:41 pm, [EMAIL PROTECTED] (Octavian Rasnita) wrote: > Hello, > > I have searched on cpan.org but I couldn't find what I need. Do you know if > there is a perl module that can create questionnaires for polls? > > I would like to use a module that could create questionnaires with more > q

RE: Not catching HUP signal - Perl Sybase

2007-12-13 Thread Andrew Curry
Look at $SIG{INT)=\&catch_signal; Sub catch_signal { $signal=shift; # # do something # exit; } -Original Message- From: NewbeeUnix [mailto:[EMAIL PROTECTED] Sent: 13 December 2007 03:57 To: beginners@perl.org Subject: Re: Not catching HUP signal - Perl Sybase Sorry for replying la

Re: Not catching HUP signal - Perl Sybase

2007-12-13 Thread NewbeeUnix
Sorry for replying late... The task that I want to achieve is to catch the HUP signal and send notification about the process. But due to addition of sybase::ctlib it catches the signal and my program fails. Another issue is that sybase::ctlib is used throughout in our project and I cannot change i

RE: Calculating Average from a file

2007-12-13 Thread Jase Critchley
I'm just not getting where to incorporate this into my script. If this is my code: system("rsh 10.123.1.250 \"cat c:\\logs\\cpu_use1 |grep -v idle\" > cpuuseb.out"); use List::Util qw/sum/; my $file = shift @ARGV || 'cpuuseb.out'; open my $fh, '<', $file or die $!;