The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::Newzbin::Constants - Exportable constants for use with WWW::Newzbin

SYNOPSIS

        use WWW::Newzbin::Constants qw(:all); # exports everything
        
        use WWW::Newzbin::Constants qw(:categories); # just exports categories
        
        use WWW::Newzbin::Constants qw(:sort); # just exports sorting-related constants

DESCRIPTION

This module contains exportable constants that can be used in conjunction with its parent module, WWW::Newzbin. The constants exported by this module are otherwise not very useful.

EXPORT GROUPS

Nothing is exported by default (this means that adding use WWW::Newzbin::Constants; or use WWW::Newzbin::Constants (); to your code will export no constants). One or more of the following export groups must be explicitly stated.

all

        use WWW::Newzbin::Constants qw(:all);

Exports constants from all export groups.

categories

        use WWW::Newzbin::Constants qw(:categories);

Exports constants relating to Newzbin categories:

  • NEWZBIN_CAT_UNKNOWN - "Unknown" category

  • NEWZBIN_CAT_ANIME - "Anime" category

  • NEWZBIN_CAT_APPS - "Apps" category

  • NEWZBIN_CAT_BOOKS - "Books" category

  • NEWZBIN_CAT_CONSOLES - "Consoles" category

  • NEWZBIN_CAT_EMULATION - "Emulation" category

  • NEWZBIN_CAT_GAMES - "Games" category

  • NEWZBIN_CAT_MISC - "Misc" category

  • NEWZBIN_CAT_MOVIES - "Movies" category

  • NEWZBIN_CAT_MUSIC - "Music" category

  • NEWZBIN_CAT_PDA - "PDA" category

  • NEWZBIN_CAT_RESOURCES - "Resources" category

  • NEWZBIN_CAT_TV - "TV" category

sort

Exports constants related to searching Newzbin (particularly via WWW::Newzbin's search_files method):

  • NEWZBIN_SORTFIELD_DATE - Sort search results by date posted

  • NEWZBIN_SORTFIELD_SUBJECT - Sort search results alphabetically by subject

  • NEWZBIN_SORTFIELD_FILESIZE - Sort search results by file size

  • NEWZBIN_SORTORDER_ASC - Sort search results in ascending order

  • NEWZBIN_SORTORDER_DESC - Sort search results in descending order

DEPENDENCIES

Exporter

SEE ALSO

WWW::Newzbin

http://v3.newzbin.com - Newzbin v3 home page

AUTHOR

Chris Novakovic <chrisn@cpan.org>

COPYRIGHT

Copyright 2007-8 Chris Novakovic.

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