This is a bit of a general problem with PDL operations that return more than one result (for instance, I'm seeing this in the nearly-finished PDL::OpenCV, and I consider it somewhat of a problem), and I'm very open to ideas on a way forward.
pdl> ? gsl_sf_gamma Module PDL::GSLSF::GAMMA gsl_sf_gamma Signature: (double x(); double [o]y(); double [o]e()) Gamma(x), x not a negative integer
Note the two [o] parameters (i.e. outputs); the second one is the error, which here was a very small number. If you call the op in scalar context, you get the last output. In this case, that's arguably the least useful one, as shown by the OP's confusion. One idea is to just throw an exception for a multi-output op called in scalar context. Anyone got a view?

In reply to Re: Using PDL::GSLSF::GAMMA by etj
in thread Using PDL::GSLSF::GAMMA by wannymahoots

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.