Syntactic Confectionery Delight | |
PerlMonks |
Beginning to see the light....by earthboundmisfit (Chaplain) |
on Jul 11, 2001 at 22:24 UTC ( [id://95791]=perlmeditation: print w/replies, xml ) | Need Help?? |
All day I've had that old Velvet Underground song
stuck in my head as I slowly discover all the ways
in which my former Perl coding practices sucked.
One small example:
To iterate through my @test = ('this','that','the other','thing') I used to write:
or even worse: I now simply bang out: print $_ . "\n" foreach @test; The less typing the better. Noone can accuse me of not being lazy. Other examples that have really changed my Perl world view include Ovid's node Death to dot star!, which really got me thinking about character classes and tilly's unique way of calling subs. Armed with this knowledge, I've been producing faster, more maintainable scripts for fun and profit. Many thanks to all the saints (and you lesser creatures, too) who toil to enlighten the flock.
Some people work very hard but still they never get it right aside: Please do not ++ this node as it's not an XP trap. My sincerest thanks to the community.
Back to
Meditations
|
|