DrWhy has asked for the wisdom of the Perl Monks concerning the following question:
From the no-that's-not-pedantic-enough-yet department:
What's the current Perl etiquette/style/conventional wisdom on when to prepend function calls with '&' and when to leave them off? I've got a situation where there are global functions being used all over the place inside other packages. The code looks like:
my $result = &::function($arg1,$arg2, ...);
Would it be preferrable to do this instead:
?my $result = ::function($arg1,$arg2, ...);
"If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To & or not to & ?
by tachyon (Chancellor) on Nov 11, 2004 at 23:00 UTC | |
by Aighearach (Initiate) on Nov 11, 2004 at 23:29 UTC | |
by !1 (Hermit) on Nov 12, 2004 at 00:58 UTC | |
| |
|
Re: To & or not to & ?
by dimar (Curate) on Nov 11, 2004 at 23:10 UTC | |
|
Re: To & or not to & ?
by itub (Priest) on Nov 11, 2004 at 23:48 UTC | |
|
Re: To & or not to & ?
by tilly (Archbishop) on Nov 12, 2004 at 01:51 UTC | |
by digiryde (Pilgrim) on Nov 13, 2004 at 03:03 UTC | |
|
Re: To & or not to & ?
by TedPride (Priest) on Nov 12, 2004 at 07:50 UTC | |
by TimToady (Parson) on Nov 12, 2004 at 16:16 UTC |