in reply to subroutine return ternary output
In my quest to reduce vertical space and advance my perl horizon :^) I am trying to convert my subroutine return statements to use the ternary operator.
If you're having problems "optimising" your code with the ternary operator, perhaps you should avoid doing so until you truly understand how to use said operator, lest your "optimisations" decrease your code readability and maintainability (and, as seen here, its "workingness" :)).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: subroutine return ternary output
by earl_the_perl (Novice) on Sep 08, 2004 at 13:13 UTC |