Forum Discussion
Paul_Lavoie_724
Nimbostratus
Dec 27, 2006Trouble with PoolMember->get_session_enabled_state in perl
Hi!
I'm starting to write perl scripts using the iControl API to replace some bigpipe shell scripts, and seem to have run into a problem.
The following application:
!/usr...
Paul_Lavoie_724
Nimbostratus
Dec 28, 2006Well, your suggestion got me to a point that I got it to work. The redefinition of the serialize command which was plucked from one of the sample scripts was to blame. The version in the header file does need some cleanup in order to work with the perl '-w' flag, however. I suggest:
Implement Typecast for iControl enumeration Elements
no warnings qw(redefine);
sub SOAP::Deserializer::typecast
{
my ($self, $value, $name, $attrs, $children, $type) = @_;
my $retval = undef;
if (defined($type) && exists($urnMap->{$type}) && $urnMap->{$type} == 1)
{
$retval = $value;
}
return $retval;
}
use warnings qw(redefine);
Thanks for the help...
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
