NAME

DNS::BL::cmds::print - Print entries matching IP ranges

SYNOPSIS

use DNS::BL::cmds::print;

DESCRIPTION

This module implements the print command, used to lookup entries from a DNSBL managed by DNS::BL. The general syntax of this command, is as follows

print {within|matching} <ip-address> [to <output-file>] [as <format>]

where each argument has the following function:

within <ip-address>

Controls which entries are to be affected. Only entries that are fully enclosed within the given IP address network range will be processed.

matching <ip-address>

Controls which entries are to be affected. Only entries that fully enclose the given IP address network range will be processed.

to <output-file>

Causes the result to be printed to the file name given as argument.

as <format>

Influences the format to be used for producing the output of the command. Available formats are:

djdnsbl

Suitable for use in DJDNSBL data files.

plain

A simple output format, which is the default.

comma

A comma-separated format, suitable for import into other programs.

internal

Returns the result in a list. This is useful for programs incorporating this module without a CLI.

This functionality is provided by the following method:

->execute()

See DNS::BL::cmds for information on this method's general purpose and calling convention.

This method implements the behavior specified above.

EXPORT

None by default.

HISTORY

$Log: print.pm,v $ Revision 1.6 2004/10/15 16:02:45 lem Add "as internal"

Revision 1.5 2004/10/13 18:06:20 lem Got rid of Carp (unneeded)

Revision 1.4 2004/10/12 18:20:57 lem Added 'matching'

Revision 1.3 2004/10/12 17:44:46 lem Updated docs. Added print with format

Revision 1.2 2004/10/12 17:32:30 lem print to now implemented

Revision 1.1 2004/10/11 21:16:34 lem Basic db and commands added

SEE ALSO

Perl(1), DNS::BL.

AUTHOR

Luis Muñoz, <luismunoz@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2004 by Luis Muñoz

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

1 POD Error

The following errors were encountered while parsing the POD:

Around line 252:

Non-ASCII character seen before =encoding in 'Muñoz,'. Assuming CP1252