Re: is there any command for catch in tcl in perl
- From: Glenn Jackman <glennj@xxxxxx>
- Date: 21 Nov 2007 15:18:04 GMT
At 2007-11-21 09:54AM, "vikram.varshney@xxxxxxxxx" wrote:
Hi
I am Vikram Varshney. My script needs to catch whether a particular
command fails or passes. This could be done very easily in tcl using
"catch" which gives "1" output when the command fails and 0 as output
when the command runs successfully.
perldoc -f eval
If you're building some code dynamically into a string:
eval "$some_code";
if ($@) {
# some error condition
}
Otherwise:
eval { some(code()); };
handle_error($@) if $@;
And what represents NULL character
in perl. I have tried "\0" & "NULL" & / / & ' ' . But they are not
working.
In what context do you need a null?
my $null = 0;
You can answer me at : vikram.varshney@xxxxxxxxx
Um, no.
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
.
- Follow-Ups:
- Re: is there any command for catch in tcl in perl
- From: vikram . varshney
- Re: is there any command for catch in tcl in perl
- References:
- is there any command for catch in tcl in perl
- From: vikram . varshney
- is there any command for catch in tcl in perl
- Prev by Date: is there any command for catch in tcl in perl
- Next by Date: Calling a SQL Server Stored Procedure from within Perl
- Previous by thread: is there any command for catch in tcl in perl
- Next by thread: Re: is there any command for catch in tcl in perl
- Index(es):
Relevant Pages
|