For simplicity's sake, I vote for hardcoding.
Hardcoding is hard.
eval { #line 1 SpecialZone1 $code_ref->(); }; #line 23 file.pl
You have to make sure "SpecialZone1" is unique.
You have to make sure "23" and "file.pl" are correct.
In reply to Re^2: Trapping errors with specificity
by ikegami
in thread Trapping errors with specificity
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |