in reply to Re^3: Compiler Optimization
in thread Compiler Optimization
If ($var || 2) is inevitably true, then that code is a rather silly (even obfuscating) construct.if ($var || 2) { # do stuff here } else { # won't do stuff }
or simply:$var || 2; # do stuff here
Is it safe for the OP to make such alterations, or do I overlook something ?$var; # do stuff here
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Compiler Optimization
by BrowserUk (Patriarch) on Feb 25, 2015 at 02:42 UTC |