Re: Curly braces and the logic of PERL
- From: rob.dixon@xxxxxxx (Rob Dixon)
- Date: Tue, 28 Oct 2008 00:28:14 +0000
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
.
- Follow-Ups:
- Re: Curly braces and the logic of PERL
- From: "Chas. Owens"
- Re: Curly braces and the logic of PERL
- References:
- Curly braces and the logic of PERL
- From: Brian
- Re: Curly braces and the logic of PERL
- From: Mr. Shawn H. Corey
- Re: Curly braces and the logic of PERL
- From: Brian
- Re: Curly braces and the logic of PERL
- From: John W. Krahn
- Curly braces and the logic of PERL
- Prev by Date: nested loop
- Next by Date: Re: nested loop
- Previous by thread: Re: Curly braces and the logic of PERL
- Next by thread: Re: Curly braces and the logic of PERL
- Index(es):
Relevant Pages
|