in reply to Re^3: Take reference and then dereference die() and warn()in thread Take reference and then dereference die() and warn()
OK, I understand your motivations, now.
You still have numerous simpler ways to do it, such as storing your long error message in a variable (you actually had a $error variable in your original post) or doing something like this:
$ perl -e 'use diagnostics; $die_on_err=shift; 0 or print "error messa
+ge" and ($die_on_err? die $! : warn "\n" ) ' 0
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (372 votes). Check out past polls.