Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Perl debugging initialization: did I just reinvent the wheel? (names)

by tye (Sage)
on Dec 02, 2016 at 04:40 UTC ( [id://1177093] : note . print w/replies, xml ) Need Help??


in reply to Perl debugging initialization: did I just reinvent the wheel?

I would avoid using the file name ".perldb" for both types of files. I'd have your ~/.perldb look for a ./.perldbinit file instead. You'll avoid some confusion, including when you try to use the Perl debugger in your home directory.

- tye        

Replies are listed 'Best First'.
Re^2: Perl debugging initialization: did I just reinvent the wheel? (names)
by mpersico (Monk) on Dec 02, 2016 at 15:22 UTC
    ~/.perldb is the only file that -d will read - that's a perl debugger standard. I don't think I can change that.
      Reread what tye suggested: in ~/.perldb, check whether .perldbinit exists (see? No tilde!) and load it if so.

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        Thank you for the gentle nudge. I'll give the idea consideration.