commit 5d9f4c56b71cca245c23ba3ea7ee5cede06ba963 parent 788f5da5669a31323ba07c0701a30aeaa29e852f Author: Andreas Guldstrand <andreas.guldstrand@gmail.com> Date: Thu, 8 Dec 2016 14:53:24 +0200 SBO::Lib::Info: document parse_info. This closes #46. Diffstat:
| M | SBO-Lib/lib/SBO/Lib/Info.pm | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git 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<parse_info()> 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;