Wiggins d'Anconia wrote: >sub test1 { > my $aa = 1; > my $aaa = 2; > test2($aa, $aaa); >} > >sub test2 { > my ($bb, $bbb) = @_; > print "aa = $bb\n"; > print "aaa = $bbb\n"; >} > >Is the above better, in the court of readability and encapsulation, >yes, in the court of elegance, maybe not...
Elegance in programming should be defined in terms of readability, at least partly. Very dense ways of coding a certain goal are smart (and I admit that I like to compress my code as much as possible), but not necessarily very elegant. ;) - Jan -- There's no place like ~/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>