in reply to Re^2: white spaces between the sigil and the variable ( $ x = )
in thread white spaces between the sigil and the variable ( $ x = )
$foo{ three } = $doit->( 1 ); $quux{ two } = get_that( 25 );
There. All better now :) (And (probably?) compatible with Perl 6)
My justifictions:
Conversely, this $foo{ says, hash; and this $foo{ three } is clearly addressing the element keyed with three in the hash named %foo.
Conversely, this $doit->( 1 ) obviously dereferences the scalar $doit and attempts to call it as a subroutine passing 1 as the parameter.
Whereas this get_that( 25 ); is obviously calling a subroutine.
Though if you're using a small enough font, that silly underscore seems to disappear, and suddenly it turns into Patrick McGoohan giving an order to that bit-part cast member you knew was destined to die this episode, because of his identifier.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: white spaces between the sigil and the variable ( $ x = )
by JavaFan (Canon) on Oct 27, 2008 at 22:57 UTC | |
by BrowserUk (Patriarch) on Oct 27, 2008 at 23:36 UTC | |
|
Re^4: white spaces between the sigil and the variable ( $ x = )
by blazar (Canon) on Oct 27, 2008 at 22:39 UTC |