home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / perl / 5908 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.2 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!autodesk!dansmith
  2. From: dansmith@Autodesk.COM (Daniel Smith)
  3. Newsgroups: comp.lang.perl
  4. Subject: how to find all current package names?
  5. Message-ID: <17597@autodesk.COM>
  6. Date: 13 Sep 92 21:47:05 GMT
  7. Organization: Autodesk Inc., Sausalito CA, USA
  8. Lines: 22
  9.  
  10.  
  11.     You have a script.  You've included some libraries,
  12. so you have more than just %_main.  Now, how would you find out
  13. the names of all of the current packages?
  14.  
  15.     What I'm up to:
  16.  
  17.     In SoftList 3.0, which I'm working on, I have a "dumpv"
  18. alias that can be invoked from the Perl CLI, and it shows the
  19. state of everything in %_main (via dumpvar.pl).  I would like to be able 
  20. spit out a list of packages so that the user could give dumpv a
  21. "which package" argument.
  22.  
  23.                 Daniel
  24.  
  25. p.s.  If you want to check out SoftList (the CLI part is in better
  26. shape than the list handling), email me, and I'll send you the beta.
  27. I have most of the command line editing you'd find in tcsh.
  28. -- 
  29.      Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
  30.           Disclaimer: written by a highly caffeinated mammal
  31.         dansmith@autodesk.com            dansmith@well.sf.ca.us
  32.