in reply to Get updates from MarsPhoenix via Twitter & Perl

foreach my $number ( 0..9 ) { my $item = $rss->get( $number++ );

I personally believe that $number++ does nothing there.

--
If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re^2: Get updates from MarsPhoenix via Twitter & Perl
by telemachus (Friar) on Jun 02, 2008 at 22:21 UTC
    It's not just you that thinks so: the ++ is useless. Thanks for pointing it out. It's a relic of a first thought (I think), where I counted up in a while loop. In the end, a for loop made more sense, but I kept incrementing $number just for fun. (Translation: I completely lost track of what I was doing there, but Perl was nice enough to Do What I Meant (TM) anyhow.