Should this be `$mod =~ s{::}{/}g;` ?