Hub::Data::FileCache -
Part of the Hub Library
Usage: fattach FILENAME, CLASS
Attach an instance of a class (which has a corresponding 'parsefile' method) to a file.
Returns an instance, which is a hash with members:
lastread # mod time last time we read it filename # name lines # ARRAY of lines in the file handlers # HASH of attached classes
The instance is a singleton.
Usage: fhandler FILENAME, CLASSNAME
Find the instance of a particular class which is attached to the file
Usage: frefresh
Signal all instances to check to see if their file on disk has been modified.
If so, re-read the file and tell all your handlers to reparse themselves.
Usage: _read_from_disk
Modify the provided instance to reflect what is on disk.
Ryan Gies
Copyright (c) 2006 Livesite Networks, LLC. All rights reserved.
Copyright (c) 2000-2005 Ryan Gies. All rights reserved.
This file created by on at
To install Hub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hub
CPAN shell
perl -MCPAN -e shell install Hub
For more information on module installation, please visit the detailed CPAN module installation guide.