Optimisation

Nigel Peck nigel.peck at miswebdesign.com
Mon Mar 2 21:01:45 GMT 2009


When the list could be empty, which is faster?

if ( @list ) { foreach ( @list ) { } }

- or just -

foreach ( @list ) { }

Or is it a pointless question?

Cheers,
Nigel


More information about the london.pm mailing list