ThreatNet::Topic - An object representation of a ThreatNet channel topic


ThreatNet is an evolving idea. This standalone module defines a topic format and an object to hold it. ThreatNet itself is not yet available.

A proposal generally defining what it might be is available at:


new $topic

The new constructor takes a new ThreatNet topic string and creates an object that represents it.

A ThreatNet topic should look like the following

  threatnet://host/path configuration

That is, it should start with a 'threatnet' URI identifier in the same style as XML namespace URIs, containing at least the host and path components, following an arbitrary string most likely representing the configuration and rules of the channel, with a format defined by the protocol.

Returns a new ThreatNet::Topic object or undef if the string is not a valid ThreatNet topic string.


Accessor method that returns the Topic as a topic string.


Accessor method that returns the protocol identifier as a URI object


Accessor method that returns the non-required protocol-specific part of the topic, which is assumed to hold the channel configuration.


All bugs should be filed via the bug tracker at

For other issues, or commercial enhancement and support, contact the author


Adam Kennedy <>



Copyright (c) 2004 Adam Kennedy. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.