Convert::yEnc::Entry - an entry in a Convert::yEnc::RC database
use Convert::yEnc::Entry; $entry = new Convert::yEnc::Entry { size => 10000 }; $entry = new Convert::yEnc::Entry { size => 50000, part => 1 }; $entry = load Convert::yEnc::Entry "10000\t10000"; $entry = load Convert::yEnc::Entry "20000\t1-20000\t1-2"; $ok = $entry->ybegin( { size=>10000 } ); $ok = $entry->ypart ( { begin=>1, end=>10000 } ); $ok = $entry->yend ( { size=>10000 } ); $entry->complete and ... print "$entry\n";
An entry in a Convert::yEnc::RC database
Convert::yEnc::Entry manages a single entry in a Convert::yEnc::RC database
Convert::yEnc::Entry
Nothing.
new
Creates and returns a new Convert::yEnc::Entry object. %ybegin is a hash of key => value pairs from a =ybegin line.
=ybegin
load
Creates and returns a new Convert::yEnc::Entry object. $fields is the portion of a line from an RC database following the file name.
ybegin
ypart
yend
Updates $entry according to the contents of a =ybegin, =ypart or =yend control line.
=ypart
=yend
The argument is a reference to a hash of key => value pairs from the control line.
Returns true iff the control line is consistent with the current state of $entry.
complete
Returns true iff all parts of the file described by $entry have been received.
""
Serializes a Convert::yEnc::Entry object for storage in an RC database.
Convert::yEnc::RC
Steven W McDougall, <swmcd@world.std.com>
Copyright (c) 2002-2008 by Steven McDougall. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Convert::yEnc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::yEnc
CPAN shell
perl -MCPAN -e shell install Convert::yEnc
For more information on module installation, please visit the detailed CPAN module installation guide.