<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl SDK warnings under strict in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-SDK-warnings-under-strict/m-p/125504#M2159</link>
    <description>&lt;P&gt;Hamfisted workaround:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--- OCUMAPI.pm.orig	2016-11-18 05:31:30.064255227 +0000
+++ OCUMAPI.pm	2016-11-18 18:24:55.278917142 +0000
@@ -5375,7 +5375,7 @@

 sub IsArrayFlag {
     my ($self, $flag) = @_;
-    return ($flag &amp;amp; FIELD_ARRAY) == FIELD_ARRAY;
+    return $flag ? (($flag &amp;amp; FIELD_ARRAY) == FIELD_ARRAY) : 0;
 }

 sub IsEncryptedFlag {&lt;/PRE&gt;&lt;P&gt;There's probably smarter ways with more knowledge of the data structures in play.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2016 18:58:14 GMT</pubDate>
    <dc:creator>FULLSTEAM</dc:creator>
    <dc:date>2016-11-18T18:58:14Z</dc:date>
    <item>
      <title>Perl SDK warnings under strict</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-SDK-warnings-under-strict/m-p/125484#M2155</link>
      <description>&lt;P&gt;Actual question I have: what's the right way to report an SDK bug?&amp;nbsp; This is the second time I've found an SDK issue, and last time I tried, Support seemed BEYOND confused that I don't have a filer problem, I don't have a serial to tag it against, and I don't want help with scripting.. I just want them to BURT something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5.6 Perl SDK, running scripts with 'use warnings' and 'use strict', in a script that's invoking aggregate_list against OCUM-cDOT 7.0:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use of uninitialized value $flag in bitwise and (&amp;amp;) at /usr/lib64/perl5/vendor_perl/NetApp-SDK/OCUMAPI.pm line 5378.&lt;/P&gt;&lt;P&gt;That bit is:&lt;/P&gt;&lt;P&gt;sub IsArrayFlag {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; my ($self, $flag) = @_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return ($flag &amp;amp; FIELD_ARRAY) == FIELD_ARRAY;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's coming from NaElement.pm,&lt;/P&gt;&lt;P&gt;if ($key_field and $all_api_bindings-&amp;gt;IsArrayFlag($key_field-&amp;gt;{flags})) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the code gets a little spaghetti, and my eyes are crossing, but I -think- the issue is around line 438, there's&lt;/P&gt;&lt;P&gt;if(ref($existing_value) eq "ARRAY") {&lt;/P&gt;&lt;P&gt;with a simple 'else' later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But aggregate-info returns a hash, not a scalar or an array.&lt;/P&gt;&lt;P&gt;Really don't want to beat my head on a support case if someone's got a direct line to a developer here, but I will if I must.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:13:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-SDK-warnings-under-strict/m-p/125484#M2155</guid>
      <dc:creator>FULLSTEAM</dc:creator>
      <dc:date>2025-06-04T18:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Perl SDK warnings under strict</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-SDK-warnings-under-strict/m-p/125504#M2159</link>
      <description>&lt;P&gt;Hamfisted workaround:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;--- OCUMAPI.pm.orig	2016-11-18 05:31:30.064255227 +0000
+++ OCUMAPI.pm	2016-11-18 18:24:55.278917142 +0000
@@ -5375,7 +5375,7 @@

 sub IsArrayFlag {
     my ($self, $flag) = @_;
-    return ($flag &amp;amp; FIELD_ARRAY) == FIELD_ARRAY;
+    return $flag ? (($flag &amp;amp; FIELD_ARRAY) == FIELD_ARRAY) : 0;
 }

 sub IsEncryptedFlag {&lt;/PRE&gt;&lt;P&gt;There's probably smarter ways with more knowledge of the data structures in play.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 18:58:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Perl-SDK-warnings-under-strict/m-p/125504#M2159</guid>
      <dc:creator>FULLSTEAM</dc:creator>
      <dc:date>2016-11-18T18:58:14Z</dc:date>
    </item>
  </channel>
</rss>

