NAME
WWW::SPOJ::User - Object representation of a SPOJ user
SYNOPSIS
use WWW::SPOJ;
my $user = new WWW::SPOJ::User('john_jones');
DESCRIPTION
See WWW::SPOJ for a description of this project.
CONSTRUCTOR
This module declares one constructor:
- WWW::SPOJ::User->new( USERNAME )
-
Constructs a WWW::SPOJ::User to represent the user with the specified username. Returns
undef
if such a user doesn't exist, so you can assume that all WWW::SPOJ::User objects are valid users.
METHODS
- $user->name( )
-
Returns the user's real name (what the user gave for the "Your name:" field on the user data update page).
- $user->username( )
-
Returns the user's username. Should be the same as what was passed to the constructor when this object was created, except for possible differences in case.
- $user->country( )
-
Returns the country the user has chosen to represent.
- $user->institution( )
-
Returns the user's institution or the empty string if the user didn't specify anything.
- $user->email( )
-
Returns the user's e-mail address. I hope you're not checking this so you can spam. Probability suggests you'll get the empty string from this method because most users will likely choose not to make their e-mail address publicly visible.
- $user->motto( )
-
Returns the user's motto or the empty string if the user didn't specify anything. Many users put a URL here.
SEE ALSO
http://www.spoj.pl/, WWW::SPOJ
BUGS
Please report them: http://rt.cpan.org/Public/Dist/Display.html?Name=WWW-SPOJ
AUTHOR
Miorel-Lucian Palii, <mlpalii@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Miorel-Lucian Palii
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.