A utility function that returns either the filehandle passed in (if defined) or a IO::Handle to STDOUT or the specified destination (which is a fileno(filehandle)).
It would be nice to make this function more general (e.g., what about stdin or stderr? a specified file?).
- uniq(listref)
- uniq(list)
-
Ensure no dups in the list (or list reference) we get.
The return value is either the list or a reference to a copy of the list, depending on the calling context. The list will have been sorted as a side effect.
- to_fh(filename)
- to_fh(filename, method)
- to_fh(filehandle)
-
Return a filehandle. If the argument is a file name, we will open the file with the method specified, for reading if unspecified. If the argument is a filehandle, it is simply returned.
- split_value($name, $pattern, $value)
-
Split the value using the pattern given. For each of the resulting pieces, prepend "$name: ". This function is used when there are a collection of values for a given name (e.g., q-values, accept values).
AUTHOR INFORMATION
Copyright 2005-2007, Kenneth Ingham. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Address bug reports and comments to: ids_test at i-pi.com. When sending bug reports, please provide the versions of IDS::Test.pm, IDS::Algorithm.pm, IDS::DataSource.pm, the version of Perl, and the name and version of the operating system you are using. Since Kenneth is a PhD student, the speed of the reponse depends on how the research is proceeding.
BUGS
Please report them.