in reply to RE: Re: Silencing the grumbling from DBD::ODBC
in thread Silencing the grumbling from DBD::ODBC
Eval operates in the same context as any other code. The return from eval is the return value of whatever that eval did. The only difference is that eval blocks can't die; errors are stored in $@ and execution of the eval block stops.$a = $b = 0; eval { $a = 3; }; $b = eval { 3; }; print "$a, $b\n"; # 3, 3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Re: Silencing the grumbling from DBD::ODBC
by little (Curate) on Sep 28, 2000 at 19:45 UTC | |
by Fastolfe (Vicar) on Sep 28, 2000 at 19:50 UTC | |
by little (Curate) on Sep 28, 2000 at 19:59 UTC | |
by Fastolfe (Vicar) on Sep 28, 2000 at 20:09 UTC |