It’s been reported that certain Dodge dealerships are discounting their gas-guzzling Ram Pickups by a whopping $13,000! This kind of news makes me feel warm and fuzzy inside. Is it justice? Is it karma? I don’t know what to call it exactly, but it basically comes down to simple economics. Folks is poor! Gas is [...]
Archive for May, 2008
Want cheaper gas? Stop buying new cars.
Posted in Current Events, tagged cars, dodge ram discount, gas prices on May 5, 2008 | Leave a Comment »
How to write a progress spinner in PERL
Posted in Perl, tagged perl autoflush on May 2, 2008 | Leave a Comment »
This is how to create a progress spinner in PERL. Concepts covered include: autoflush var, modulo operator, for loop, carriage return character.
1: local $|=1;
2: my @spinner = (‘|’, ‘/’, ‘-’, ‘\\’);
3: for(my $i=0; $i <= 32; $i++)
4: {
5: print “Voila! “, $spinner[$i % 4];
6: [...]