Data::Embed::Reader - embed arbitrary data in a file - reader class
Get the list of files embedded into the main file.
In list context, it returns a list of Data::Embed::File objects, each representing a different embedded file.
In scalar context, it returns an anonymous array with the list above.
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 prefix of a file, i.e. the data that is at the beginning of a target but that it is not indexed. It is provided as a Data::Embed::File.
Data::Embed::File
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-2016 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.