http://qs321.pair.com?node_id=1177093


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        

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

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.