Ajit P Singh wrote:
>
> I have a eval block and some if conditions within it and I would like to
> exit the eval block.
> i.e
>
> eval{
> my @resp = something;
> if ((some condition)){
> $str_output = "do something";
> > I want to exit from hereto Reach Aft
From: "Singh, Ajit p" <[EMAIL PROTECTED]>
> I have a eval block and some if conditions within it and I would like
> to exit the eval block. i.e
perldoc -f return
return EXPR
return Returns from a subroutine, "eval", or "do FILE" with the
value
given in EXPR. Evaluation of EX
On 02/20/04 07:12, Singh, Ajit p wrote:
Hello Friens,
I have a eval block and some if conditions within it and I would like to
exit the eval block.
i.e
You can use die or goto:
#!/usr/bin/perl
use strict;
use warnings;
eval {
if (0) { print 'false' }
if (1) { goto end_eval }
};
print "before
Hello Friens,
I have a eval block and some if conditions within it and I would like to
exit the eval block.
i.e
eval{
my @resp = something;
if ((some condition)){
$str_output = "do something";
> I want to exit from hereto Reach After Eval