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

#!/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

  • Comment on Re: Did I use Net::Twitter::lite correctly for moving lists between accounts?
  • Download Code

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

    As a followup to my above post, and to partially answer the question of why your question received a downvote (as tye says , why your question sucks), here is what I think

    stackoverflow moderators would probably reject this question, as
    not-a-real-question
    not specific enough
    too many questions
    move to codereview at stackexchange
    ...

    You try to follow the pattern from How do I post a question effectively?, but the title isn't effective because you really ask 2-5 different questions, and your question isn't really Did I use Net::Twitter::lite correctly for moving lists between accounts?

    Or if the Title is one of your actual questions, what happened when you tried? :D

    I don't do twitter, so don't really feel like creating a test account, testing the code, deleting the account :)

    Hi

      move to codereview at stackexchange

      Yes, clearly "her node sucked" because she shouldn't have posted it to perlmonks.org. She should have posted it to the other of our family of sites, the one that allows people to request code reviews. What was that site? Oh, yes: perlmonks.org.

      - tye        

        Hello