11.5. Is there a way to find out what is in my perl/Tk "PATH"?

Presuming this question is asking for a little more than the answer you get when you type:

    ls perl5/Tk/*.pm
there is a way to find out what gets EXPORTED by Tk.pm. Use a script like:
    #!/usr/bin/perl
    
    use Tk;
    require 'dumpvar.pl';
    
    dumpvar('Tk');
or more succintly at the shell command prompt:
    perl -e 'use Tk; require "dumpvar.pl"; dumpvar("Tk");'
The advantage of using dumpvar over ls is that it gives you a brief summary of all the arguments your widgets want. Note that the output is many lines and you may wish to pipe through more or less.

Previous | Return to table of contents | Next