in reply to passing argument to sub wanted
You need to pass an additional parameter to wanted. The way to do this is to use a closure: File::Find::find({wanted => sub { wanted( $size_input); } }, $fs_input ) ;. This way wanted is called by the anonymous sub, and gets passed $size_input.
See Why I hate File::Find and how I (hope I) fixed it for more info.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing argument to sub wanted
by mikejones (Scribe) on May 16, 2008 at 19:40 UTC | |
|
Re^2: passing argument to sub wanted
by mikejones (Scribe) on May 15, 2008 at 15:50 UTC | |
|
Re^2: passing argument to sub wanted
by mikejones (Scribe) on May 14, 2008 at 15:49 UTC |