Re: Overlapping RFCs 135 138 164

[email protected] (Uri Guttman)
Newsgroups perl.perl6.language.regex
Message-ID <[email protected].>
>>>>> "TC" == Tom Christiansen <[email protected]> writes:

  >> ($foo = $bar) =~ s/x/y/; will never make much sense to me. 
  TC> What about these, which are much the same thing in that they all
  TC> use the lvaluability of assignment:

  TC>     chomp($line = <STDIN>);
  TC>     ($foo = $bar) += 10;

that should be a much clearer:

	$foo = $bar + 10;

  TC>     ($foo += 3) *= 2;

that is way too many assignment ops. better is the normalized

	$foo = ($foo + 3) * 2;

  TC>     $n = select($rout=$rin, $wout=$win, $eout=$ein, 2.5);

who uses select directly anymore? use a module! :)

uri

-- 
Uri Guttman  ---------  [email protected]  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.