-
Notifications
You must be signed in to change notification settings - Fork 0
Module for getting version from module_file.
License
michal-josef-spacek/Module-Version-File
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME Module::Version::File - Module for getting version from module_file. SYNOPSIS use Module::Version::File qw(get_version); my $version = get_version($module_file); SUBROUTINES "get_version($module_file)" Gets version from $module_file. ERRORS get_version(): Cannot read file '%s'. EXAMPLE # Pragmas. use strict; use warnings; # Modules. use File::Temp; use IO::Barf qw(barf); use Module::Version::File qw(get_version); # Example module data. my $example_module = <<"END"; package Foo; use strict; use warnings; our \$VERSION = 3.14; END # Temporary file. my $temp_file = File::Temp->new->filename; # Create exmaple module. barf($temp_file, $example_module); # Get version. my $version = get_version($temp_file); # Print out. print "$version\n"; # Unlink temporary file. unlink $temp_file; # Output. # 3.14 DEPENDENCIES Error::Pure, ExtUtils::MakeMaker, Exporter, Readonly. SEE ALSO Module::Version, Module::Extract::VERSION. AUTHOR Michal Špaček skim@cpan.org LICENSE AND COPYRIGHT © 2011-2015 Michal Špaček BSD 2-Clause License VERSION 0.01
About
Module for getting version from module_file.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published