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
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
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
>
>
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
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
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
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
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
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
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
>
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
11 matches
Mail list logo