Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here's the code:
Anyone point me in the right direction?# # I use curl and sed instead of something cleaner like LWP # # deal with it # my $status_exec = `curl --silent http://twitter.com/$user | sed -n -e +'s/.*Updates.*<span class=\"stats_count numeric\">\\(.*\\)<\\/span>.* +/\\1/p'`; $status_exec =~ tr/,//d; $statuses_count = int($status_exec) || die "Couldn't retrieve current +statuses count:\n";
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: curl substitute
by gwadej (Chaplain) on Sep 19, 2009 at 03:10 UTC | |
by Anonymous Monk on Sep 19, 2009 at 12:26 UTC | |
by graff (Chancellor) on Sep 19, 2009 at 13:47 UTC | |
by Anonymous Monk on Sep 19, 2009 at 14:18 UTC | |
by Anonymous Monk on Sep 19, 2009 at 12:40 UTC | |
|
Re: curl substitute
by cmac (Monk) on Sep 19, 2009 at 03:17 UTC | |
|
Re: curl substitute
by jdrago_999 (Hermit) on Sep 22, 2009 at 17:55 UTC |