chazubell has asked for the wisdom of the Perl Monks concerning the following question:

Developing on a Mac OS X 10.10 using perl 5.18 and attempting to debug this line of code:

my $folder = '/Users/chaz/Documents/perl/MailingList/Last.Mailing.Arc +hive_20150218-1450/messages'; <\code> <P> This then causes the debugger, i.e. perl -d &ltfilename&gt to emit thi +s error: </P> <code> Use of uninitialized value $tid in concatenation (.) or string at /Sys +tem/Library/Perl/5.18/perl5db.pl line 1831. at /System/Library/Perl/5.18/perl5db.pl line 1831. DB::_DB__read_next_cmd(undef) called at /System/Library/Perl/5.18/ +perl5db.pl line 2741 DB::DB called at create_dead_eamil_list.pl line 45

Any thoughts? I know I screwed something up. BTW: the samething happened with perl brew too.

Chaz Ubell "Running to stay in place"

Replies are listed 'Best First'.
Re: Cannot Debug on Mac OS X 10.10
by GotToBTru (Prior) on Feb 25, 2015 at 20:55 UTC

    Try to reproduce the problem using the shortest program you can. The error message looks like the problem is with the Perl debugger, and not your code, which would be really odd. Do you have a variable $tid in your code?

    Dum Spiro Spero
      Duh me. I had had a -W on the Shebang line. Brickbats generously accepted.
      Chaz Ubell "Running to stay in place"
Re: Cannot Debug on Mac OS X 10.10
by karlgoethebier (Abbot) on Feb 25, 2015 at 20:28 UTC
    "Any thoughts?"

    Yes: My major problem is reading your strange formatted example. If i could simply read it instead of doing some reverse engineering i would fire it up on my Mac to see what happens.

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      Never mind.

      Solved it.

      See my previous post.

      Thanks.

      -cdu

      Chaz Ubell "Running to stay in place"