- or download this
*PI = \3.14159;
*STR = \'Some string';
# etc.
- or download this
use warnings;
use strict;
...
warn "$@";
eval { foo($str2) };
warn "$@";
- or download this
$ perl tst.pl
Warning: something's wrong at tst.pl line 10.
Warning: something's wrong at tst.pl line 12.
Warning: something's wrong at tst.pl line 14.