eff_i_g has asked for the wisdom of the Perl Monks concerning the following question:
Thank You.use warnings; use strict; use File::Find; # $data_dir is determined. $SIG{__WARN__} = sub { print "Skipping...\n"; # skip the rest of the loop for the file. } sub find_process { # open each file that meets the naming criteria. # begin looping through the file. # attempt to access the substr. # skip this file if there was a substr warning and report it. } find(\&find_process, $data_dir);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Advanced warning handling?
by ikegami (Patriarch) on Mar 23, 2006 at 18:18 UTC | |
|
Re: Advanced warning handling?
by diotalevi (Canon) on Mar 23, 2006 at 18:38 UTC | |
|
Re: Advanced warning handling?
by acid06 (Friar) on Mar 23, 2006 at 18:52 UTC | |
|
Re: Advanced warning handling?
by eff_i_g (Curate) on Mar 23, 2006 at 20:06 UTC |