I need some help with Inline::PDLPP.  I'm pretty sure it's the only
sensible way to go about some of the tasks I'm trying to do
(basically, small-scale database field matching).

Anyway, I'm encountering a variety of different errors depending on
how I call a given function.

If I call my function "matchradec" as a PDL object as was done in the
examples (i.e. $pdlname->matchradec(...) ), I get this error within
the perldl shell:

Can't locate object method "matchradec" via package "PDL" at (eval 90)
line 23, <AUTOLOAD_FILE> line 56.
       (in cleanup) PDL AutoLoader:  Undefined subroutine
match_radec() cannot be autoloaded.
       While parsing file `/home/adam/data_dir/SAGE_data/match_radec.pdl':
Can't locate object method "matchradec" via package "PDL" at (eval 90)
line 23, <AUTOLOAD_FILE> line 56.

match_radec is my perl wrapper.

If I call it like I'd normally call a function from PP wrapper code,
i.e. &PDL::matchradec(...), I get this error in the perldl shell:

Undefined subroutine &PDL::matchradec called at (eval 933) line 613,
<AUTOLOAD_FILE> line 36659.


However, if I execute my match_radec.pdl code on the command line using
perl match_radec.pdl
I get no error, it works fine (as far as I can tell, I haven't done
extensive testing...)

Where's my mistake?  Am I wrong to think I should be able to  use
Inline Pdlpp code within the perldl shell?

Also, while I'm on the topic, am I allowed to put the output parameter
first in the pars list?  I'd like the code to operate in place on the
object by default.

Thanks,
Adam

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to