Path::Class::Versioned

A simple module for managing versioned file names
Download

Path::Class::Versioned Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Stevan Little
  • Publisher web site:
  • http://search.cpan.org/~stevan/

Path::Class::Versioned Tags


Path::Class::Versioned Description

A simple module for managing versioned file names Path::Class::Versioned is a Perl module that aims to provide a simple, yet sophisticated way of creating and managing versioned files by name. It is a poor substitute for using a real VCS (version control system) or some more sophisticated versioning module that utilizes diffs, etc. However, there are some times when you just don't need that level of control, and just need to back stuff up in a simple way, so here it is.SYNOPSIS use Path::Class::Versioned; # typical usage for files ... my $v = Path::Class::Versioned->new( name_pattern => , parent => # coerced into Path::Class::Dir ); # create the next filename in the # sequence as specified by the # name pattern above. my $next_file_name = $v->next_name; # defaults to files ... # create an instance of Path::Class::File # that represents that next file name my $file = $v->next_file; # typical usage for directories ... my $v = Path::Class::Versioned->new( name_pattern => , parent => Path::Class::Dir->new() # will use current dir ); # just like the file example, but # tell it to match against directories # instead of files my $next_dir_name = $v->next_name(dir => 1); # create an instance of Path::Class::Dir # that represents that next directory name my $subdir = $v->next_dir; Requirements: · Perl


Path::Class::Versioned Related Software