Zoidberg::Utils(3pm)

Zoidberg::Utils3pm

An interface to zoid's utility libs

Usage

TODO

Overview

This module bundles common routines used by the Zoidberg object classes, especially the error and output routines.

It is intended as a bundle or cluster of several packages so it is easier to keep track of all utility methods.

Export

By default the ':error' and ':output' tags are exported.

The following export tags are defined:

:error

Gives you "error", "bug", "todo", "complain"; the first 3 belong to Zoidberg::Utils::Error, the last to Zoidberg::Utils::Output.

:output

Gives you "output", "message" and "debug", all of which belong to Zoidberg::Utils::Output.

:fs

Gives you "path" and "list_dir", which belong to Zoidberg::Utils::FileSystem.

Also methods listen below can be requested for import.

Methods

"read_data_file($basename)"

Searches in zoid's data dirs for a file with basename $basename and returns a hash reference with it's contents.

This method should be used by all plugins etc. to ensure portability.

FIXME more explanation

"read_file($file)"

Returns a hash reference with the contents of $file. Currently only perl scripts are read and these should return (or end with) a hash reference. Possibly other formats like yaml will be added later.

Releases

3 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0–5.0

Author

Jaap Karssenberg ⎪⎪ Pardus [Larus] <[email protected]>

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

The import function was adapted from Exporter::Tidy by Juerd Waalboer <[email protected]>, it was modified to add the clustering feature.

From zoidberg 0.96-1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.