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: