in reply to RFC: App::SFDC
This comment is related to the WWW::SFDC package.
I don't like stuff like
my ($result, $headers) = $self->_call( 'executeAnonymous', SOAP::Data->name(string => $code), $options{debug} ? SOAP::Header->name('DebuggingHeader' => \SOAP::Dat +a->name( debugLevel => 'DEBUGONLY' ))->uri($self->uri) : (), );
because it makes it hard to see what's going on. I would prefer it to build the function arguments separately, like:
my @args = ( 'executeAnonymous' SOAP::Data->name(string => $code), ); if ($options{debug}) { # this line should also be cleaned up somehow push @args, SOAP::Header->name('DebuggingHeader' => \SOAP::Data->nam +e(debugLevel => 'DEBUGONLY'))->uri($self->uri); } my ($result, $headers) = $self->_call(@args);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: RFC: App::SFDC
by ali0sha (Sexton) on Jul 15, 2015 at 08:25 UTC | |
by Monk::Thomas (Friar) on Jul 15, 2015 at 11:25 UTC | |
by Nemo Clericus (Beadle) on Jul 15, 2015 at 16:18 UTC |