>> print "$animation[$counter++]\b"; > >I think you got this backwards. The backslash should be before the counter, >otherwise the animation won't look right, particularly for slower loops.
I didn't test slower loops - the above code worked with no noticeable uglies on a dual 450mhz machine.
>> $counter = 0 if $counter == scalar(@animation); > >Wouldn't it have been easier (well, at least more >succinct) to move this logic into the print statement: > >print "\b$animation[$counter++ % scalar(@animation)]";
It's certainly more succinct, but the book was designed as a "teaching hospital", and that's some ugly damn code <g>... (or, at least, more "compacted" and less Englishy/readable then a "lesson" should be).
-- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ My book, Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus
_______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
