in reply to Astro::MoonPhase Issue

That works! Why did what I have not work?

Replies are listed 'Best First'.
Re^2: Astro::MoonPhase Issue
by jethro (Monsignor) on Nov 10, 2009 at 10:39 UTC

    Because perl returns results positionally, not by name

    The method phase() returns a lot of results, the first being the Moon Phase, the second the Illumination. You stored the first return parameter, which holds the Moon Phase, into the variable $MoonIllum