Avatar for squadette
» from archive

http://stackoverflow.com/questions/9268647/whay-is-the-most-elegant-way-to-turn-a-hash-inside-out/9268657#9268657 оказывается я всю жизнь неправильно понимал смысл перловских сигилов

Comment

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.

 ‎· псы в рапиде
Comment

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).

 ‎· псы в рапиде
Comment

sygil-sygil ай-лю-лю

 ‎· заменил спиртное мотоспортом
Comment

Hash! I stand in your hall and I hold your sygil.

 ‎· псы в рапиде

1 2 3 4 5 6 7 8 9 10