diff options
author | Marat Nepomnyashy <marat@eng-158.vyatta.com> | 2007-12-13 17:43:33 -0800 |
---|---|---|
committer | Marat Nepomnyashy <marat@eng-158.vyatta.com> | 2007-12-13 17:43:33 -0800 |
commit | 3514265febf44394677b7ad06f2824b21e33b51d (patch) | |
tree | d9b8cefde5526bfaef79cf70b7e2a6bc761af4cb /scripts | |
parent | 96b548691d857e331ebcb0313ff94bd40127b795 (diff) | |
download | vyatta-cfg-3514265febf44394677b7ad06f2824b21e33b51d.tar.gz vyatta-cfg-3514265febf44394677b7ad06f2824b21e33b51d.zip |
Removed 'defined' when checking array @subs to avoid deprecated warning when running 'perl -w'.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/VyattaConfigDOMTree.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaConfigDOMTree.pm b/scripts/VyattaConfigDOMTree.pm index d951202..86aabf8 100644 --- a/scripts/VyattaConfigDOMTree.pm +++ b/scripts/VyattaConfigDOMTree.pm @@ -307,7 +307,7 @@ sub getSubNodesNumber { my @subs = $node->getSubNodes(); - if(defined @subs) { + if(@subs) { $ret = $#subs + 1; } } |