in reply to Re^4: perl challenge 3
in thread Reaped: perl challenge 3

do i need to replace my line with your line or just add the slashes

Replies are listed 'Best First'.
Re^6: perl challenge 3
by Anonymous Monk on Dec 16, 2015 at 20:46 UTC

    you need to replace
     my $SubDirs= File::Find::Rule->directory->in('etc', 'dev', 'bin');
    with

    my @startDirs = qw(/etc /dev /bin); my @SubDirs= File::Find::Rule->directory->in( @startDirs );

    and then use @SubDirs in the next statement... this might work (untested) it could also ve @startDirs

      What is in /etc /dev and /bin ? I can't imagine they have both files and subdirs ... you can probably just skip that part and give these original dirs to the next find call