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

#!/usr/bin/perl -- use strict; use warnings; ... Main( @ARGV ); exit( 0 ); sub Main { my $blah = Function1(); my @blah = Function2($blah); @blah = Function3( \@blah ); ... }
And of course, use meaningful function names

Do I send a message to all the lists followers individually? Do I announce the move from my main account to all my followers?

Ask yourself:
Do I really want my followers to follow?
Are my followers twitter-savvy technically inclined individuals?
If the answer is yes, do both, and make it easy for them to follow you on the correct, new list (or whatever twitter boom bah)

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.