Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Perl Golf 101by chargrill (Parson) |
on May 27, 2006 at 06:45 UTC ( [id://551971]=note: print w/replies, xml ) | Need Help?? |
Excellent tips! I'll have to incorporate those into my golfed obfu, though I shan't post an updated version because its format is quite well fixed with the existing number of characters it had prior to the application of some of the tips received since posting. Since the first round of feedback from this node, I've already cut down another ~60 characters, and with yours I'm sure I'll cut down quite a few as well (Update: around another 20 so far), as the original makes a fair amount of use of some of the idioms you're suggesting which can be golfed further. I sort of hinted at postfixing for not requiring the parens of braces without stating it explicitly, along with order of precedence. As far as builtin variables, while I know what $- and $= are (and default to), I don't have anything in my notes about special effects they have - just a note for $* making any numerical value assigned to it an implicit int (which gives me an idea... ;-) I will more than likely incorporate some of your suggestions (and especially your explanations!) into my original post, with of course your permission (and proper attribution on my part). --chargrill
In Section
Meditations
|
|