Data::Embed::Reader - embed arbitrary data in a file - reader class
version 0.1_02
Constructor. Takes one positional parameter, that can be either a filename or a filehandle (in particular, a GLOB).
If a filename is provided, is it opened for read in :raw mode; an exception will be thrown if errors arise.
:raw
If a filehandle is provided, it is expected to be seekable and will also be binmode-d in :raw mode; again, an exception is thrown in case of errors.
binmode
Get the list of files embedded into the main file.
In list context, it returns a list of Data::Embed::File objects, each represeting a different embedded file.
In scalar context, it returns an anonymous array with the list above.
reset the object's cached data, in particular the list of files. This might come handy in case you update the file and you want to re-read the index.
Flavio Poletti <polettix@cpan.org>
Copyright (C) 2014 by Flavio Poletti <polettix@cpan.org>
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Data::Embed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Embed
CPAN shell
perl -MCPAN -e shell install Data::Embed
For more information on module installation, please visit the detailed CPAN module installation guide.