Re: is there any command for catch in tcl in perl



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
.



Relevant Pages