Skip Menu |

This queue is for tickets about the Salesforce CPAN distribution.

Report information
The Basics
Id: 106457
Status: new
Priority: 0/
Queue: Salesforce

People
Owner: Nobody in particular
Requestors: rsaige [...] inoc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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