This first script gets the data from my main account and is going to put that data into various files for storage.
Your program flow is interleaved/buried between variable/subroutine declarations and loops.
If I were you, I would make more functions (one for each loop), so that each program boils down to
And of course, use meaningful function names#!/usr/bin/perl -- use strict; use warnings; ... Main( @ARGV ); exit( 0 ); sub Main { my $blah = Function1(); my @blah = Function2($blah); @blah = Function3( \@blah ); ... }
Do I send a message to all the lists followers individually? Do I announce the move from my main account to all my followers?
My head is a bit fuzzy from all of this cargo culting. I probably have way too much code here for the task.
The code (the how) is distracting your from the why -- don't look at the code, don't think in terms of code/API calls, try thinking in terms of joe-twitter-user / joe-twitter-follower
In reply to Re: Did I use Net::Twitter::lite correctly for moving lists between accounts?
by Anonymous Monk
in thread Did I use Net::Twitter::lite correctly for moving lists between accounts?
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |