in reply to Re: odd line in windows
in thread odd line in windows

and I think that's not quite the right thing to be doing. According to perlapi, newRV_inc() takes an SV* arg, but AV_procs is an AV*.

An AV is a type of SV. That's indeed the way to create a reference to an array. You just need to cast.

newRV_noinc(MUTABLE_SV(av))