timtowtdi has asked for the wisdom of the Perl Monks concerning the following question:
But this doesn't work:#!/usr/bin/perl -w use strict; use Find::File my $source = “/mnt/usbdisk”; sub Recursive { my ($diskpathfile = ($File::Find::name)); print $diskpathfile, “\n”; } find (\&Recursive, $source);
And the trouble is, it may be simple, but I cant find a answer in the Find::File documentation itself. Can anybody give me a clue?#!/usr/bin/perl -w use strict; use Find::File my $source = “/mnt/usbdisk”; sub Recursive { my ($msg) = @_; print $msg, “\n”; my ($diskpathfile = ($File::Find::name)); print $diskpathfile; } find (\&Recursive(“hello”), $source);
|
|---|