update: what BrowserUk said, especially the part about output buffering: print statements are not generally a reliable way to measure timing (though you could include the current millisecond time, as given by Time::Hires in your debugging line, which should give you a reasonable indication), but even then, the if(...) statement you posted should probably take a lot less time to execute than printing a line to stdout.
In reply to Re^3: notequal very slow
by Joost
in thread notequal very slow
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |