NAME
Xcruciate::Utils - Utilities for Xcruciate
SYNOPSIS
(Put example code here.)
DESCRIPTION
Provides utility functions Xcruciate (currently previewing from time to time at http://dhansak.www.xcruciate.co.uk:8080). You shouldn't need to use these directly.
AUTHOR
Mark Howe, <melonman@cpan.org>
EXPORT
None
FUNCTIONS
check_path(option,path,permissions)
Checks that the path exists, and that it has the appropriate permissions, where permissions contains some combination of r, w and x. If not, it dies, using the value of option to produce a semi-intelligable error message.
check_absolute_path(option,path,permissions)
A lot like &check_path (which it calls), but also checks that the path is absolute (ie is starts with a /).
type_check(selfhash,name,value,record)
Returns errors on typechecking value against record. Name is provided for error messages. Selfhash might be useful one day. Note that selfhash is not yet blessed.
apache_time(epoch_time)
Produces an apache-style timestamp from an epoch time.
datetime(epoch_time)
Converts GMT epoch time to the format expected by XSLT date functions.
BUGS
The best way to report bugs is via the Xcruciate bugzilla site (http://www.xcruciate.co.uk/devel).
COMING SOON
A lot more code that is currently spread across assorted scripts, probably split into several modules.
PREVIOUS VERSIONS
0.01: First upload
COPYRIGHT AND LICENSE
Copyright (C) 2008 by SARL Cyberporte/Menteith Consulting
This library is distributed under BSD licence (http://dhansak.xcruciate.co.uk:8080/licence-code).