sibyurik has asked for the wisdom of the Perl Monks concerning the following question:
It gives me an error no &wanted subroutine given at /usr/share/perl/5.18/File/Find.pm line 1073
#!/usr/bin/perl # #Author: Yury Sibirski #Name: users_home_dir #Date: 16 December 2014 #Purpose: This program analyze the directory structure of a Linux disk + and identify any files larger than 500 kbytes # use File::Find; use strict; use warnings; my $path = shift || '.'; find($path); find( sub { return unless -r && -f; my $size = -s; print "$File::Find::name $size\n" if $size > 51200; }, $path );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dear Monsk pls help me with that error
by NetWallah (Canon) on Dec 17, 2014 at 03:22 UTC | |
by sibyurik (Novice) on Dec 17, 2014 at 04:11 UTC |