in reply to Howto return a reference of an array of custom class?
I don't think your problem is the mat::Network routines, your program can't find the "p" subroutine. Where is it? Do you need to include some other module or something that contains the definition of p()?
non-Perl: Andy Ford
In Section
Seekers of Perl Wisdom