CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Perl recursive.pm help

 



ajit
New User

May 21, 2007, 5:40 AM

Post #1 of 1 (1599 views)
Perl recursive.pm help Can't Post

Hi,

Can any one help me with using the recursive.pm package/module. I am using dir.pm module also, i am getting the following error at this line in dir.pm

my $dh = IO::Dir::Recursive->new('C:\Perl\Scripts\Testing_directory\New Folder');
print "$_\n" while $dh->read(); nothing is read here, so nothing is printed.

tie my %dir, 'IO::Dir::Recursive', 'C:\Perl\Scripts\Testing_directory\New Folder';
print $dir{subdir1}->{subdir2}->{file}->slurp(); error occurs on execution of this line which points to the following line in dir.pm. my($atime,$mtime) = ref($data)? @$data : ($data,$data);

Can any one tell me how does the above four lines actually work. I am able to get the directory structure into %dir but can slurp() the files.

Thanks.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives