smist has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to utilize the File::Set module found at http://search.cpan.org/~robm/File-Set-1.01/Set.pm. I'm having difficulties getting any output.
In the example code in the module it says to call the list subroutine like so:use File::Set; $FS = File::Set->new(); $FS->add('/directory'); $FS->list("", \$callback); $callback = sub { print "Test\n" };
list($Context, $Callback, $ErrorHandler)
I do not know what to use for $Context or $Callback. I'm not certain the code is even traversing the directory I supply in the add() subroutine. I tried running the program with debugging enabled and stepping through it and it doesn't seem to be doing much at all.
Does anyone have a working example I can see to get me rolling with this? Thanks for any suggestions and help. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to use File::Set module
by akho (Hermit) on May 01, 2007 at 18:24 UTC | |
by smist (Acolyte) on May 02, 2007 at 18:43 UTC | |
|
Re: How to use File::Set module
by jbert (Priest) on May 01, 2007 at 18:16 UTC |