Test::File::ShareDir::Utils(3pm)

Test::File::ShareDir::Utils3pm

Simple utilities for file::sharedir testing

Usage

  use Test::File::ShareDir::Utils qw( extract_dashes );
  my $hash = extract_dashes('dists', $oldhash );

Version

version 1.001002

Exportable functions

extract_dashes

A utility that helps transform:

  -opt_a => bar
  -opt_b => baz
  NameA  => NameAValue
  NameB  => NameBValue

Into

  opt_a => bar
  opt_b => baz
  modules => {
    NameA => NameAValue
    NameB => NameBValue
  }

This is a useful approach used all over import and functional style interfaces due to explicit configuration being needed only on rare occasions.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10–11
  3. 12–13

Author

Kent Fredric <[email protected]>

From libtest-file-sharedir-perl 1.001002-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.