Forum Discussion
JD_73952
Nimbostratus
Dec 09, 2011perl API issue - unrecognized type error
Normally I'm not one to post on forums for help as I prefer to root around the internet, forums and documentation and learn the hard way, but after spinning my wheels on this one for a couple of days,...
JD_73952
Nimbostratus
Dec 12, 2011I've resolved this. Chalk this one up to ignorance.
Through all of my research on this site in the perl section, I did not find any reference to the fact that you needed to place the iControlTypeCast.pm module in your @INC and then 'use iControlTypeCast.pm' in your script. Possibly a seemingly rookie mistake, but being unfamiliar with SOAP::Lite, I was thinking that those definitions were carried through in the SOAP response from the server.
I only started suspecting that this was the case when I found an example perl script that included iContrlTypeCast.
This should be a bullet point in the 'Quick start for perl' section of this site.
I also needed to go in and make a few changes to the iControlTypeCast.pm file to handle some 'undef' and 'subroutine redefined' errors when using '-w' and 'use strict'. I actually also found that these problems had been addressed earlier and supposedly rolled into the archived version of iControlTypeCast.pm, but apparently those changes were lost between revision. (http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/51/aft/59992/showtab/groupforums/Default.aspx)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects