John W. Krahn wrote:
> 
> The fewer lines of code to read and/or write, the easier it is to spot 
> mistakes, the less chance for "action at a distance."

Not at all.

Is this

sub wanted { return unless -f; open my $FH, '<', $_ or die "Cannot open '$_'
$!"; while ( <$FH> ) { /\Q$string/ && print $REPORT "$File::Find::name\n" and
return; } } find \&wanted, '/test';

easier to debug?

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to