Hi Alan: > I saw your commit of the revised example 2 for Perl/PDL. Since then I have > made some build-system changes (revision 9037) to change the list of what > Perl/PDL examples are executed depending on the CMake variable > HAVE_PDL_GRAPHICS_PLPLOT_40. Currently, example 02 and example 20 are > excluded from the list if that variable is not "ON". > > Could you follow up on my work by maintaining the two lists in > plplot_test/test_perl.sh.in as you continue to update the perl/pdl examples > and add new ones?
Will do. > > Also, could you put some basic cookbook-style instructions in > examples/perl/README.perldemos so a perl newbie (like me) could download and > install PDL-Graphics-PLplot-0.40? I would like to test out your updated > examples. (My current installed version of PDL is 2.4.3-8 from Debian Lenny.) You should be able to download PDL-Graphics-PLplot-0.40.tar.gz from CPAN, then: tar -xvzf PDL-Graphics-PLplot-0.40.tar.gz cd PDL-Graphics-PLplot-0.40 perl Makefile.PL make make test make install It is also possible that a CPAN install from the perl 'cpan' tool would work. > > The current method of specifying HAVE_PDL_GRAPHICS_PLPLOT_40 is to set > either -DHAVE_PDL_GRAPHICS_PLPLOT_40=ON or -DHAVE_PDL_GRAPHICS_PLPLOT_40=OFF > (the default) as one of the cmake options. > I would like to replace that crude control method by one that automatically > tests the version of PDL-Graphics-PLplot that is available and sets > HAVE_PDL_GRAPHICS_PLPLOT_40 appropriately. To implement that, I need to > know a simple command you could execute from the command-line that could be > used to figure out whether version 0.40 (or later) of PDL-Graphics-PLplot is > installed or not. Do you have such a command to suggest to me? Ideally, > the command would succeed (return code 0) or fail (non-zero return code) > depending on whether 0.40 or later was installed, but other possibilities > (such as returning a version number and letting CMake decide whether that is >> = 0.40) would work as well. I just uploaded a new version to CPAN which should support this. Now: perl -MPDL::Graphics::PLplot -e 'print "$PDL::Graphics::PLplot::VERSION\n"' should work, printing '0.41'. A test of 0.41 or greater should suffice, as I know I'll be releasing 0.42 soon. > > I am very pleased to hear that you are actively working on the Perl/PDL > aspects of PLplot again. I hope to find enough time this time around! Regards, Doug > > Alan > __________________________ > Alan W. Irwin > > Astronomical research affiliation with Department of Physics and Astronomy, > University of Victoria (astrowww.phys.uvic.ca). > > Programming affiliations with the FreeEOS equation-of-state implementation > for stellar interiors (freeeos.sf.net); PLplot scientific plotting software > package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of > Linux Links project (loll.sf.net); and the Linux Brochure Project > (lbproject.sf.net). > __________________________ > > Linux-powered Science > __________________________ > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel