Perl being the magical language it is, I wonder is there a way to evaluate two pieces of code that do the same thing but do it in different ways ? I have two ways to retrieve information from a database and stick it into a HTML template but niether is particularly fast and I'd like to be able to test both for speed to see which to choose. But the principle could be used with any two pieces of different code that produce the same effect. Any ideas ?