On Tue, 24 Sep 2013 18:48:40 +0200, Luca Ferrari wrote: > I read both the book and the exegenis, it is only that it requires me to > think about the correct usage of sigils because it is not as much > intuitive for me as it is in v5. > I was just trying to explain to my brain why having immutable sigils is > smarter than the v5 ones. I know Perl is built in a way everything has a > strong sense, I cannot see what is in this case.
When you learn a language - Perl 5 in this case - its syntax becomes 'intuitive'. From then on, any deviation from it is unintuitive. It takes a special kind of genius to be both familiar with that language and step outside of it to determine what will be more intuitive to someone who has not encountered the language at all yet, and that's what we have in Larry and Damian. In my classes, people invariably wanted to put @ on the beginning of an array element to begin with. After enough correction, they learned to use $, and adopted the rationalization for it. But most people's first instinct is @. That's why the Llama book doesn't introduce the @ sign for arrays until after its shown the use of $ for scalar elements. Damian and Larry determined that they could remove this small speed bump without any damage to the language. -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.oreillyschool.com/certificates/perl-programming.php http://www.informit.com/store/product.aspx?isbn=9780133036268 -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/