The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

RRD::Daemon::Util - utilities for RRD::Daemon

mlhash

take a hash (as a ref), and an RE to split on, and return a hash (as a ref) that is the orig, as a multi-level hash split on the given re.

So,

  %a = ( 'a.b' => 7, 'a.c' => 5 );
  $b = mlhash(\%a, qr/\./); # $b == +{ a => +{ b => 7, c => 5 } };