in reply to Backward compatible lexical warnings
The problem with the first approach is that perls older than 5.006002 don't have the if module in core. This doesn't affect the second one of course.