Hi Luis, As a very practical matter, I would not worry about about chkform disappearing. It has been present in PDL since v1.99987 was brought under version control in 1998. It's unlikely to go anywhere after 21+ years, so you can safely continue using it as you are. If PDL::IO::Pic gets a major overhaul (unlikely), it will be well advertised.
That being said, the only requirement to adding it to the @EXPORT_OK would be a small amount of documentation. If you want to do that and make a pull request, please go ahead! cheers, Derek > On Mar 26, 2020, at 1:24 PM, Luis Mochan <[email protected]> wrote: > > I have a program that uses rpic to open image files provided by the user. > I want to give a diagnostic message if rpic cannot read the file > without calling rpic and having it fail. The package PDL::IO::Pic > provides the routine rpiccan to check for a specific type of > image. However, I would have to find out the kind of image first. I > found out that PDL::IO::Pic already has a function 'chkform' that > checks the type of the image according to its magick number and its > extension. Unfortunately, that routine is not exported. Thus, my use > of that routine (as PDL::IO::Pic::chkform) is risky, as it could > disappear in the future. Could it be added to the @EXPORT_OK list, > although not exported by default? > > Regards, > Luis > > -- > > o > W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) > Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ > Apdo. Postal 48-3, 62251 | (*)/\/ \ > Cuernavaca, Morelos, México | [email protected] /\_/\__/ > GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16 C2DF 5F0A C52B 791E B9EB > > > _______________________________________________ > pdl-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pdl-general > _______________________________________________ pdl-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pdl-general
