in reply to Re: Re: Why do we say the =~ operator "binds"?
in thread Why do we say the =~ operator "binds"?
Then don't write it that way:
foreach my $address (@email_addresses) { my $is_valid = $address =~ /[a-zA-Z0-0.]+\@[a-zA-Z0-0.]+/; if ($is_valid) { .... } }
Seriously, if you're writing code for public consumption and think, "Gee, I hope who's ever reading this can understand it," then rewrite it so you're sure they'll be able to understand it, or comment it, or do both.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Why do we say the =~ operator "binds"?
by diotalevi (Canon) on Apr 18, 2004 at 15:41 UTC | |
by William G. Davis (Friar) on Apr 18, 2004 at 22:11 UTC | |
Re: Re: Re: Re: Why do we say the =~ operator "binds"?
by emazep (Priest) on Apr 19, 2004 at 05:55 UTC | |
by William G. Davis (Friar) on Apr 20, 2004 at 04:48 UTC | |
by emazep (Priest) on Apr 20, 2004 at 05:08 UTC |