in reply to Re^3: Automatically add all defined functions to your @EXPORT
in thread Automatically add all defined functions to your @EXPORT
I prefer putting one very specific item per map or grep.
I don't get the logic of this. (That doesn't mean you should change it, I'd just like to understand it).
You (probably) wouldn't code:
if( $var == 1 ) { doSomething(); } if( $var == 1 ) { doSomethingElse(); }
Instead of
if( $var == 1 ) { doSomething(); doSomethingElse(); }
Or
if( $var1 == 1 ) { if( $var2 == 2 ) { doSomething(); } }
In preference to
if( $var1 == 1 && $var2 == 2 ) { doSomething(); }
(would you?).
So why the difference about combining the conditional in grep?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Automatically add all defined functions to your @EXPORT
by Tanktalus (Canon) on Jun 21, 2005 at 16:24 UTC | |
by BrowserUk (Patriarch) on Jun 21, 2005 at 17:09 UTC | |
by Transient (Hermit) on Jun 21, 2005 at 17:09 UTC | |
Re^5: Automatically add all defined functions to your @EXPORT
by dragonchild (Archbishop) on Jun 21, 2005 at 15:06 UTC | |
Re^5: Automatically add all defined functions to your @EXPORT
by ikegami (Patriarch) on Jul 14, 2005 at 20:48 UTC | |
by ikegami (Patriarch) on Jan 21, 2009 at 19:32 UTC |