>How do I log die errors and exit nicely.
Hi,you could re-defined signal die handler,for example:
$SIG{__DIE__}=\&log_die;
sub log_die
{
my $time=scalar localtime;
open (HDW,">>",$err_log);
print HDW $time," ",@_;
close HDW;
die @_;
}
when your program call the 'die',it s
Hi
I need to run my perl program from Windows scheduler.I have printed most of
the errors in a Log file, except for die " " errors.
How do I log die errors and exit nicely.
one example is ..
my $result=open(VF, ">>$SRCDIR\\$Verbosefile") ;
unless($result) {print "Error: can't append to $Verbo
sorry for an incomplete question, but this is exactly what I was after..
:)
Thanks
On 3/20/06, Christer Ekholm <[EMAIL PROTECTED]> wrote:
>
> "Ash Varma" <[EMAIL PROTECTED]> writes:
>
> > Hi..
> >
> > I have:
> >
> > $code[0][0] = "AAA"
> > $code[0][1] = "19.5"
> > $code[1][0] = "AAD"
> > $code[
- Original Message -
From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]>
Date: Saturday, March 18, 2006 2:15 pm
Subject: Matrix Processing for fix set of records with a set number of columns
> I am assisting a business partner in coming up with a set of
"Ash Varma" <[EMAIL PROTECTED]> writes:
> Hi..
>
> I have:
>
> $code[0][0] = "AAA"
> $code[0][1] = "19.5"
> $code[1][0] = "AAD"
> $code[1][1] = "20.0"
> $code[2][0] = "ZZZ"
> $code[2][1] = "10.7"
> $code[3][0] = "XXA"
> $code[3][1] = "5.9"
> $code[4][0] = "YXA"
> $code[4][1] = "27.1"
> $code[5][0]
> ""Ash" == "Ash Varma" <[EMAIL PROTECTED]> writes:
"Ash> Hi..
"Ash> I have:
"Ash> $code[0][0] = "AAA"
"Ash> $code[0][1] = "19.5"
"Ash> $code[1][0] = "AAD"
"Ash> $code[1][1] = "20.0"
"Ash> $code[2][0] = "ZZZ"
"Ash> $code[2][1] = "10.7"
"Ash> $code[3][0] = "XXA"
"Ash> $code[3][1] = "5.9"
"Ash>
Hi..
I have:
$code[0][0] = "AAA"
$code[0][1] = "19.5"
$code[1][0] = "AAD"
$code[1][1] = "20.0"
$code[2][0] = "ZZZ"
$code[2][1] = "10.7"
$code[3][0] = "XXA"
$code[3][1] = "5.9"
$code[4][0] = "YXA"
$code[4][1] = "27.1"
$code[5][0] = "AZX"
$code[5][1] = "1.9"
What would be the best way to sort this
Joel CARNAT wrote:
Hi,
I have written a small perl script that reads a few RSS flows and
generate an HTML file. It seems one of them have non-ASCII character not
encoded ; this make the script stop.
*** perl script says
***
not well-formed (invalid token) at line 90, column 63, byte 3936 at
/