Finding the Smaller Value in Perl
Published on 30 Nov 2007Tags #Perl
The following code chunk was found in Perl Best Practices. Its syntactic symmetry and elegance caught my attention.
print [$result1=>$result2]->[$result2<=$result1];
The following code chunk was found in Perl Best Practices. Its syntactic symmetry and elegance caught my attention.
print [$result1=>$result2]->[$result2<=$result1];