use File::Find; use List::Util qw(shuffle); my @files; find({wanted => sub { push @files, $File::Find::name }, follow => 1}, +$somedir); @files = shuffle @files; process_file($_) for @files;
In reply to Re: randomising file order returned by File::Find
by salva
in thread randomising file order returned by File::Find
by jefferis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |