There are no variables that begin with : There are variable declarations in signatures that begin with :
:$foo is exactly the same as :foo($foo) sub bar ( :$foo ) {…} sub bar ( :foo($foo) ){…} :$foo in a signature is a shortcut for declaring a named argument :foo() and a variable with the same base name $foo :$foo also does the same thing as an argument my $foo = 1; bar( :$foo ) bar( :foo($foo) ) bar( foo => $foo ) Note that forms with : can be outside of the signature bar( ) :$foo bar( ) :foo($foo) On Sat, Aug 29, 2020 at 9:05 PM ToddAndMargo via perl6-users < perl6-us...@perl.org> wrote: > On 2020-08-29 17:04, ToddAndMargo via perl6-users wrote: > > On 2020-08-28 23:51, Tobias Boege wrote: > >> - :$chomp, :$enc, :$nl-in which are passed on to the open call > >> in the first bullet point above, > > > > Hi Tobias, > > > > I am in process of revising my keeper on lines. > > May I talk you out of examples of the syntax used > > by :$chomp, :$enc, and :$nl-in? > > > > Many thanks, > > -T > > And if you would not mind, what is the official name > of variables that begin with ":" >