巫泽俊 > Archive-Rgssad-0.1 > Archive::Rgssad::Entry

Download:
Archive-Rgssad-0.1.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.1   Source   Latest Release: Archive-Rgssad-0.11

NAME ^

Archive::Rgssad::Entry - The great new Archive::Rgssad::Entry!

SYNOPSIS ^

    use Archive::Rgssad::Entry;

    # create a new entry
    my $entry = Archive::Rgssad::Entry->new($path, $data);

    # update path and data
    $entry->path($new_path);
    $entry->data($new_data);

    # save the entry to file
    open FH, '>', $entry->path;
    print FH $entry->data;
    close FH;

DESCRIPTION ^

Each entry in rgssad archive is simply a (path, data) pair.

Constructor

new([$path [, $data]])

Create a new entry.

Accessors

path([$new_path])

Return the path of the entry. If $new_path is given, set the path to $new_path and return it.

data([$new_data])

Return the data of the entry. If $new_data is given, set the data to $new_data and return it.

AUTHOR ^

Zejun Wu, <watashi at watashi.ws>

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Archive::Rgssad::Entry

You can also look for information at:

LICENSE AND COPYRIGHT ^

Copyright 2012 Zejun Wu.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: