diff options
author | Gisle Aas <gisle@aas.no> | 2012-07-31 23:05:31 +0200 |
---|---|---|
committer | Gisle Aas <gisle@aas.no> | 2012-07-31 23:05:48 +0200 |
commit | 3dd72ded7f043a4f6973781fe594722e2e95f491 (patch) | |
tree | 7e6b30185a82d2b4a4fe36c310692bb1b99d2ec7 /URI/URL.pm | |
parent | 4a83898b61f87f1a9a27dfd262ff8f54f15ccd3e (diff) | |
download | uri-baserock/xfce-build.tar.gz |
Singleton attributes should't return empty listsbaserock/xfce-buildbaserock/morph
It should be possible to set up an array with
{ USER => $url->user, PASSWORD => $url->password }
without having to worry what $url->user and $url->password
will return empty lists when the element isn't present.
Diffstat (limited to 'URI/URL.pm')
-rw-r--r-- | URI/URL.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ sub eparams { my $self = shift; my @p = $self->path_segments; - return unless ref($p[-1]); + return undef unless ref($p[-1]); @p = @{$p[-1]}; shift @p; join(";", @p); |