RE: Pls Help with a Basic Script.

2006-03-07 Thread Anderson, Mark \(Service Delivery\)
At the line: if($_ =~ m/ORA-/ ){ a) you don't need the m/ just / b) what are you expecting to be in $_ and have you checked (print stderr "$_";)? Kind regards, Mark Anderson SMS Deployment The Royal Bank of Scotland 113 Dundas Street, Edinburgh, EH3 5DE http://www.manufacturing.rbs.co.uk/GTr

RE: Pls Help with a Basic Script.

2004-08-20 Thread Jenda Krynicky
From: "Denham Eva" <[EMAIL PROTECTED]> > Are you just trying to report the ORA-XXX errors in reverse order? If > so, something like this should work: > > my @errs; > while () { > push @errs, $_ if /ORA-/; > } > print reverse @errs; I wanted to ask why do you push the lines

RE: Pls Help with a Basic Script.

2004-08-20 Thread Denham Eva
Thanks Bob, I discovered this when using Mark's suggestion. [snip] You haven't read a row from SITELOG. So the regex below is checking the row from your SITES file. > > # Check the file for any ORA- entries > > if($_ =~ m/ORA-/) { > > # If it contains records, reverse the file > >

RE: Pls Help with a Basic Script.

2004-08-20 Thread Denham Eva
m Eva; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Pls Help with a Basic Script. At the line: if($_ =~ m/ORA-/ ){ a) you don't need the m/ just / b) what are you expecting to be in $_ and have you checked (print stderr "$_";)? Kind regards, Mark Anderson SMS Deployme

RE: Pls Help with a Basic Script.

2004-08-20 Thread Bob Showalter
Denham Eva wrote: > Please could the wise folks give me some help. Something is wrong and > I can not find out what. > > When I run this program it returns everything is OK (Suspect a logic > error somewhere), which is not possible as the logs in question do > have data that I require (i.e. ORA-12

RE: Pls Help with a Basic Script.

2004-08-20 Thread Anderson, Mark (Service Delivery)
At the line: if($_ =~ m/ORA-/ ){ a) you don't need the m/ just / b) what are you expecting to be in $_ and have you checked (print stderr "$_";)? Kind regards, Mark Anderson SMS Deployment The Royal Bank of Scotland 113 Dundas Street, Edinburgh, EH3 5DE http://www.manufacturing.rbs.co.uk/GTr

Re: pls help

2004-07-12 Thread u235sentinel
shashideep nuggehalli wrote: Thank you for ur concern . Btw , I do not really appreciate the use of the term "sucker" and I am not sure if such language could be used in public mailing lists with out understanding the proper reasons for the mail. I simply agreed with the other poster as pasted bel

Re: pls help

2004-07-11 Thread u235sentinel
I agree. If they are a competent company then shallow knowledge of Perl will get him nowhere. I've been studying for almost a year and have written basic code (IMO) to accomplish a few things. In a recent interview I was asked about my Perl knowledge. They had a couple of basic questions wh

Re: pls help

2004-07-11 Thread Jenda Krynicky
From: shashideep nuggehalli <[EMAIL PROTECTED]> > Hello everybody, > My name is Shashideep. I am new member of the group. I have been > learning PERL for the last few days. I want to be good enough to take > up interviews . BEG YOUR PARDON ??? > I would be grateful if somebody could direct

RE: pls help

2001-07-22 Thread Tom Malone
: Re: pls help It's not all that hard, just follow the links... but here's the page you can click to download: http://aspn.activestate.com/ASPN/Downloads/ActivePerl hth, Jos Boumans > Hi all > > This amy seem a little silly, but I've checked perl.com, perl.org, and >

Re: pls help

2001-07-22 Thread Jos I. Boumans
It's not all that hard, just follow the links... but here's the page you can click to download: http://aspn.activestate.com/ASPN/Downloads/ActivePerl hth, Jos Boumans > Hi all > > This amy seem a little silly, but I've checked perl.com, perl.org, and > activestate.com and cannot find instructi