http://www.perlmonks.org?node_id=1209144


in reply to Re^8: Create output from Perl hash
in thread Create output from Perl hash

To remove the first two digits, try changing this:
$add =~ s/(\d+)$/1\/1\/1\/$1/;
to this:
$add =~ s/\d\d(\d+)$/1\/1\/1\/$1/;