Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I was wondering if there's a way to configure the Carp stack backtrace, as printed by longmess or confess, to get a shorter line. For instance, with just the filename + line number, and a shorter, relative path:
Big error thrown. Stack: ./lib/Foo.pm:15 ./lib/Bar.pm:320 ./lib/Base/BarBase.pm:210
Well, you get the drill.
cheers!
andrea
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shorter Carp stack backtrace
by almut (Canon) on Apr 16, 2010 at 01:34 UTC | |
by Anonymous Monk on Apr 16, 2010 at 12:33 UTC | |
by Anonymous Monk on Apr 16, 2010 at 02:28 UTC | |
by almut (Canon) on Apr 16, 2010 at 02:47 UTC |