File::History - It is a simple history file maker.


File-History documentation  | view source Contained in the File-History distribution.

Index


NAME

Top

File::History - It is a simple history file maker.

SYNOPSIS

Top

  use File::History;

  my $history = File::History->new(
      filename  => '/path/to/.history'
  );

  my $cmd = $history->find_history();
  $history->add_history($cmd);
  $history->flush;

DESCRIPTION

Top

File::History is simpel history file maker

METHOD

Top

new(filename => $filename)

  The constructor must specify passing the history file.

find_history();

  This method picks up a record from input history.

add_history($cmd);

  The command newly input is stored in the memory.

flush();

  This method writes file the input history.
  When you finish a terminal, this method is called.

AUTHOR

Top

Kazuhiro Nishikawa <kazuhiro.nishikawa@gmail.com>

SEE ALSO

Top

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


File-History documentation  | view source Contained in the File-History distribution.