псы в рапиде » from archive
http://stackoverflow.com/questions/9268647/whay-is-the-most-e... оказывается я всю жизнь неправильно понимал смысл перловских сигилов
tchrist: Last week it took me like half a [CENSORED] hour to explain that solution to a Beginning Perl class. I’ve decided to remove it from the materials. They simply cannot understand hash slices. They get in stuck in their heads that @ means array; they don’t understand that it takes the { to mean a hash and that the @ is immaterial. ‎· псы в рапиде
DVK: the most intuitive explanation I've seen was "the sygil represents the amount of data from the data structure that you are retrieving ($ of 1 element, @ for a list of elements, % for entire hash) whereas the brace style represent what your data structure is (square for array, curly for hash). ‎· псы в рапиде
Hash! I stand in your hall and I hold your sygil. ‎· псы в рапиде