Subject: | Error in Update code |
Date: | Fri, 14 Aug 2015 12:45:55 -0500 |
To: | bug-Salesforce [...] rt.cpan.org |
From: | Ryan Saige <rsaige [...] inoc.com> |
Currently, the code in Salesforce.pm under the Update subroutine is
looking for the first argument in a hash to be 'type'. Well, hashes are
not sorted, so people have no way of ensuring it is the first argument.
Here is an example of how I was able to fix the module, by not using the
splice command:
my @array = @_;
my ( $spec, $type );
for(my $i=0;$i<=$#array;$i++){
if ($array[$i] =~ /type/) {
$spec = $array[$i];
$type = $array[$i+1];
}
}
Thanks,
Ryan Saige