summaryrefslogtreecommitdiff
path: root/URI/URL.pm
diff options
context:
space:
mode:
authorGisle Aas <gisle@aas.no>2012-07-31 23:05:31 +0200
committerGisle Aas <gisle@aas.no>2012-07-31 23:05:48 +0200
commit3dd72ded7f043a4f6973781fe594722e2e95f491 (patch)
tree7e6b30185a82d2b4a4fe36c310692bb1b99d2ec7 /URI/URL.pm
parent4a83898b61f87f1a9a27dfd262ff8f54f15ccd3e (diff)
downloaduri-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.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/URI/URL.pm b/URI/URL.pm
index ade2028..75517fa 100644
--- a/URI/URL.pm
+++ b/URI/URL.pm
@@ -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);