in reply to Re: Creating reference to hash and array
in thread Creating reference to hash and array
If I encountered code with that "+" in it, I'd either waste quite some time wondering what it's doing there, or accidentally break the code when updating it! Using "return" is unlikely to confuse anyone.
Of course, there may be are other circumstances where "+" is the only way to get the desired result. (Can anyone concoct such an example?) In those cases, I'd have to rely on an informative comment next to it. But hey, we're all diligent with our comments aren't we? :-)
--
use JAPH;
print JAPH::asString();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Creating reference to hash and array
by Bloodnok (Vicar) on Apr 14, 2009 at 11:19 UTC |