2 ms·
I find arrow notation when dealing with references makes things a lot clearer in Perl. In the example, $r->[$SKUTITLE] rather than $$r[$SKUTITLE] 'use constan
by idlewords 17y ago
I find arrow notation when dealing with references makes things a lot clearer in Perl.
In the example, $r->[$SKUTITLE] rather than $$r[$SKUTITLE]
'use constant' for the numbered fields would also help, getting rid of a few dollar signs.
- elblanco 17y agoPerl's dereferencing semantics are atrocious. I love the language, but figuring out which combination of sigils dereference something can take forever. I'm so very glad they included arrow notation, that's literally saved me hundreds of hours. I've always had the impression that the basic dereferencing ($$r[$SKUTITILE]) semantics were more a function of clever Larry thought he could be than something that was well planned. If I'm not mistaken, the dereference notation changes again in Perl 6, but I haven't bothered to really check it out until the releases reach a production level.