From 5d9f4c56b71cca245c23ba3ea7ee5cede06ba963 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Thu, 8 Dec 2016 14:53:24 +0200 Subject: SBO::Lib::Info: document parse_info. This closes #46. --- SBO-Lib/lib/SBO/Lib/Info.pm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SBO-Lib/lib/SBO/Lib/Info.pm') diff --git a/SBO-Lib/lib/SBO/Lib/Info.pm b/SBO-Lib/lib/SBO/Lib/Info.pm index 36458ad..c000c4e 100644 --- a/SBO-Lib/lib/SBO/Lib/Info.pm +++ b/SBO-Lib/lib/SBO/Lib/Info.pm @@ -201,6 +201,15 @@ sub get_sbo_version { return $version->[0]; } +=head2 parse_info + + my %parse = parse_info($str); + +C parses the contents of an .info file from C<$str> and returns +a key-value list of it. + +=cut + sub parse_info { script_error('parse_info requires an argument.') unless @_ == 1; my $info_str = shift; -- cgit v1.2.3