I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-02-19 20:45:44-08 by grantg in response to 1821
Re: by zip code
Hi Josh,

There isn't a function that scans myspace's "Browse" pages, which is basically what you're talking about. If you'd like to start writing a "browse" method, it'd be a great Perl exercise. :)

The method should probably take a hash or hash reference for its arguments, so that it can be expanded upon (and so you don't have to implement the entire advanced search at once :).

So for example we'd call:

@local_friends = $myspace->browse( { 'zip_code' => 90032 } ); And when we get more advanced we'd be able to: @friends = $myspace->browse( { 'zip_code' => 90032, 'raduis' => 20, 'min_age' => 18, 'max_age' => 45 } ); and so on.

(Note that I currently send people who want this functionality to myspacebot.com).

Direct Responses: Write a response