in reply to Is it possible to determine the eval block accumulator?
But if you want a pure Perl function for that:
The problem is that you make an eval to get the eval_x!sub eval_x { eval("die") ; my ($eval_x) = ( $@ =~ /\(\s*eval\s+(\d+)\s*\)/si ); return( $eval_x ) ; }
About the idea of "fever", to follow the order of the eval()s that you make to get the number, don't do this. Because if some eval() has another eval() inside, you can't follow any more!
Graciliano M. P.
"The creativity is the expression of the liberty".
|
|---|