Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by tye (Sage)
on Dec 02, 2016 at 04:40 UTC ( #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        

  • 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 (Scribe) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1177093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2020-09-28 05:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (143 votes). Check out past polls.

    Notices?