develooper Front page | perl.perl5.porters | Postings from May 2004

a little extra cmdline help. [PATCH]

Thread Next
Jim Cromie
May 7, 2004 11:39
a little extra cmdline help. [PATCH]
Message ID:

attached patch does 2 things:

1. tells user about -S

[jimc@harpo cmdline]$ ./perl foo
Can't open perl script "foo": No such file or directory.  Use -S to 
search PATH for it

yes its excessive, but would have saved me years of typing the path.
    perl -d ~/bin/
otoh - rtfm.

2. -D'' usage

[jimc@harpo cmdline]$ ./perl -Dz foo
invalid option -Dz, run -D'' to see choices

[jimc@harpo cmdline]$ ./perl -D foo
 Debugging flag values:
        1  p  Tokenizing and parsing
        2  s  Stack snapshots. with v, displays all stacks
        4  l  Context (loop) stack processing
        8  t  Trace execution
       16  o  Method and overloading resolution
       32  c  String/numeric conversions
       64  P  Print profiling info, preprocessor command for -P, source 
file input state
      128  m  Memory allocation
      256  f  Format processing
      512  r  Regular expression parsing and execution
     1024  x  Syntax tree dump
     2048  u  Tainting checks
     4096     (Obsolete, previously used for LEAKTEST)
     8192  H  Hash dump -- usurps values()
    16384  X  Scratchpad allocation
    32768  D  Cleaning up
    65536  S  Thread synchronization
   131072  T  Tokenising
   262144  R  Include reference counts of dumped variables (eg when 
using -Ds)
   524288  J  Do not s,t,P-debug (Jump over) opcodes within package DB
  1048576  v  Verbose: use in conjunction with other flags
  2097152  C  Copy On Write

it might be better to strip the numbers and reduce clutter,
since the letters are mnemonic and easier to use.


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About