in reply to Did I use Net::Twitter::lite correctly for moving lists between accounts?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Did I use Net::Twitter::lite correctly for moving lists between accounts?
by Anonymous Monk on Aug 17, 2011 at 02:08 UTC | |
by tye (Sage) on Aug 17, 2011 at 18:19 UTC | |
by Anonymous Monk on Aug 18, 2011 at 06:58 UTC |