# The following was supposedly scribed by # Williams, Ken # on Thursday 01 April 2004 05:30 pm:
>printf("Number of elements: %d\n", 1+sv_len(av_ptr)); I think you want: printf("Number of elements: %d\n", 1+av_len(av_ptr)); For other examples of juggling hash and array refs with Inline::C functions, take a look at the code from CAD::Drawing::IO::DWGI. All of the C code is in DWGI/functions.c. I don't claim that these are shining examples, simply what works for me. --Eric