יובל קוג'מן (Yuval Kogman) > KiokuDB-Cmd > KiokuDB::Cmd::OutputHandle

Download:
KiokuDB-Cmd-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

KiokuDB::Cmd::OutputHandle - A role for command line tools with a --file option that will be used for write access.

DESCRIPTION ^

See KiokuDB::Cmd::Command::Dump for an example.

ATTRIBUTES ^

file

The file to open. A MooseX::Getopt enabled attribute.

force

Whether to allow overwriting of existing files. A MooseX::Getopt enabled attribute. When backup is enabled, allows overwriting of the backup file.

backup

Whether to backup before overwriting. A MooseX::Getopt enabled attribute.

backup_ext

Defaults to .bak. A MooseX::Getopt enabled attribute.

fh

This filehandle is created based on all the other attributes on demand.

syntax highlighting: