GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::Myspace::FriendChanges(3) User Contributed Perl Documentation WWW::Myspace::FriendChanges(3)

WWW::Myspace::FriendChanges - Track additions/deletions to your friends list

Version 0.04

Returns a list of friends that have been added or deleted since the last run.

        use WWW::Myspace;
    use WWW::Myspace::FriendChanges;

        my $myspace = new WWW::Myspace;

    my $foo = WWW::Myspace::FriendChanges->new( $myspace );

        OR
        
        my $foo = WWW::Myspace::FriendChanges->new( $myspace, $cache_file )

        # Get the list of deleted friends.
        @deleted_friends = $foo->deleted_friends;
        
        # Get the list of new friends
        @added_friends = $foo->added_friends;
        
        # Write the current friend list into the cache file.
        $foo->write_cache;

The new method requires 1 argument (a WWW::Myspace object), and takes an optional second argument, a filename for the cache file. The cache file defaults to "friendcache" in the WWW::Myspace cache_dir. You can set it using the "new" method or using the "cache_file" method.

Sets the cache file. You should use "cache_file" instead. This method is only for backwards compatibility.

Sets or returns the current cache filename.

        my $cache_file = $friend_changes->cache_file;

        print $cache_file;

"filename" is used as the file from/to which we read/write the list of friends. Setting the cache filename also clears the internal last_friends list.

Writes out the current list of friends to the cache file.

Returns a list of the IDs of friends that have disappeared since the last cache list was saved. The first time it's called it searches the friends lists and caches the list of deleted friends within the object data.

        Usage:
        
        use WWW::Myspace;
        use WWW::Myspace::FriendChanges;
        
        my $myspace = new WWW::Myspace;
        my $friend_changes = new FriendChanges( $myspace );

        my @deleted_friends = $friend_changes->deleted_friends;

Returns a list of the IDs of friends that have been added since the last cache list was saved.

Grant Grueninger, "<grant at cscorp.com>"

Please report any bugs or feature requests to "bug-www-myspace at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Myspace>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.

    perldoc WWW::Myspace::FriendChanges

You can also look for information at:

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/WWW-Myspace>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/WWW-Myspace>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Myspace>

  • Search CPAN

    <http://search.cpan.org/dist/WWW-Myspace>

Copyright 2005 Grant Grueninger, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2008-06-19 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.