Hello monks, I have experienced the phenomenon, that scripts with the latest Getopt::Long::Descriptive succeed in the debugger, but fail without. Can anyone explain why this happens or how to debug/fix these kind of issues?
> perl -v This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int (with 13 registered patches, see perl -V for more detail) # try the Getopt::Long::Descriptive Synopsis > perl synopsis.pl --help Reference found where even-sized list expected at /usr/lib/perl5/site_ +perl/5.10/Getopt/Long/Descriptive.pm line 442. Use of uninitialized value $arg{"name"} in hash element at /usr/lib/pe +rl5/site_perl/5.10/Getopt/Long/Descriptive.pm line 477. Use of uninitialized value in anonymous hash ({}) at /usr/lib/perl5/si +te_perl/5.10/Getopt/Long/Descriptive.pm line 486. Use of uninitialized value $arg{"name"} in hash element at /usr/lib/pe +rl5/site_perl/5.10/Getopt/Long/Descriptive.pm line 503. Reference found where even-sized list expected at /usr/lib/perl5/site_ +perl/5.10/ # works > env PERLDB_OPTS="NonStop=1" perl -d synopsis.pl --help my-program [-psv] [long options...] <some-arg> -s --server the server to connect to -p --port the port to connect to -v --verbose print extra stuff --help print usage message and exit
SOLVED A fresh reinstall of Params::Validate solved the issue.

print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});

In reply to script fails but succeeds in debugger by codeacrobat

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.