[Rt-commit] [rtir] 04/04: defined @array is deprecated on 5.18

Kevin Falcone falcone at bestpractical.com
Mon Jul 15 13:08:59 EDT 2013


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 2.9/bundle-net-whois-ripe
in repository rtir.

commit 274f760a5578aea4ccca7852a9ffe38e650abaf4
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Mon Jul 15 12:44:51 2013 -0400

    defined @array is deprecated on 5.18
    
    All this really cares about is "do I have any errors" which doesn't
    require a defined check.
---
 lib/Net/Whois/RIPE/Object.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Net/Whois/RIPE/Object.pm b/lib/Net/Whois/RIPE/Object.pm
index 21425ec..cccd4de 100644
--- a/lib/Net/Whois/RIPE/Object.pm
+++ b/lib/Net/Whois/RIPE/Object.pm
@@ -198,7 +198,7 @@ sub error {
 
 sub success {
     my $self = shift;
-    return defined @{ $self->{_error} } > 0 ? 0 : 1;
+    return @{ $self->{_error} } ? 0 : 1;
 }
 
 sub debug {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list