Johan Vromans <jvromans@squirrel.nl> wrote: > One of the things I often do in a Makefile.PL is generate an RPM .spec > file for the current module (kit) from a template. For this, I need to > change things like name and version in the template. > > Is there an 'official' way to get this information from Module::Build? > I can use $build->{properties}->{dist_version} but I'd prefer to not > look under the hood as per OO conventions. > > Suggestions? > use YAML; YAML::LoadFile("META.yml"); Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> deThread Previous