News for hackers. Stuff that matters.
Re:Perl 6 Introduction by username223 on Saturday November 28, 2015 @08:38AM (#10641011)
> I however don't understand the reason for naming of eg elsif, my, slurp/spurt??

Yes, it's for historical reasons. "elsif" is spelled that way in Perl 5. Perl 5 has both "my" and "local" to specify lexical and dynamic scoping, respectively, so Perl 6 using "local" for lexical scope would be confusing. "slurp" is a common term for reading the entire contents of a file at once.

Re:Perl 6 Introduction by omaranto on Saturday November 28, 2015 @02:08PM (#10641992)
"my" is shorter than "local" or "let" and fairly evocative. Maybe you should ask why other languages don't use "my", instead. :P
Re:Perl 6 Introduction by cafard on Saturday November 28, 2015 @09:30AM (#10641134)
"my" arrived after "local". The former is true lexical scoping, the latter isn't quite.
Re:Perl 6 Introduction by tbrownaw on Saturday November 28, 2015 @11:29AM (#10641470)
Right. As gp says, "local" is dynamic scoping.

It's available as long as the declaration stays on the call stack. It more-or-less allows globals to be temporarily redefined.

Re:Perl 6 Introduction by DonHopkins on Saturday November 28, 2015 @02:10PM (#10641998)
Think locally, act globally.