in reply to Apocalypse 3
First, Damian explains that colon is used to mark the indirect object for print: print $filehandle : $text_to_print; Later, Damian explains that colon is used to mark the adverb for a function: print sum @numbers_to_sum : $filter; In the first case, the syntax is function indirect-object : direct-object, and in the second case function direct-object : adverb. How is this apparent ambiguity resolved?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Apocalypse 3
by TheDamian (Vicar) on Oct 11, 2001 at 11:34 UTC | |
by clemburg (Curate) on Oct 11, 2001 at 12:36 UTC | |
by TheDamian (Vicar) on Oct 12, 2001 at 06:06 UTC |