in reply to Re^2: perl challenge 3
in thread Reaped: perl challenge 3
#!/usr/bin/perl use File::Find::Rule; use warnings; my $filelist; sub buildFile { open ($filelist, ">", "filelist.txt") || die $!; # File find rule and # Provide specific list of directories to scan my $SubDirs= File::Find::Rule->directory->in('etc', 'dev', 'bin'); + # interpret Size Method and stored the list on @files my @files = File::Find::Rule->size('500')->in($SubDirs); print $filelist map { "$_\n" } @files; return \$filelist; }
this is what i had can someone correct me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: perl challenge 3
by FreeBeerReekingMonk (Deacon) on Dec 16, 2015 at 01:14 UTC | |
by johnrock47 (Initiate) on Dec 16, 2015 at 01:48 UTC | |
by Anonymous Monk on Dec 16, 2015 at 20:46 UTC | |
by Anonymous Monk on Dec 16, 2015 at 21:18 UTC | |
|
Re^4: perl challenge 3
by Anonymous Monk on Dec 16, 2015 at 01:15 UTC | |
by johnrock47 (Initiate) on Dec 16, 2015 at 01:18 UTC | |
by Anonymous Monk on Dec 16, 2015 at 01:23 UTC | |
by FreeBeerReekingMonk (Deacon) on Dec 16, 2015 at 01:21 UTC |