@files = (); sub filer { $filepath_rs = $File::Find::name; if(-f $filepath_rs) { $metadata = {}; #should instantiate a new hash object and retu +rn a scalar reference. $metadata->{path} = $filepath_rs; print $metadata->{path}; #prints out fine push @files, $metadata; #should add reference to hash to array +. } } find(\&filer, $mydir); foreach my $file (@files) { print $file->{path}; #??? }
In reply to Re: Array of Hashes
by ~~David~~
in thread Array of Hashes
by tobeythorn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |