From 38b69fcfc9f24e530622e44f4a2d685604f07e39 Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Thu, 9 Dec 2004 07:23:19 +0000 Subject: [PATCH] At least do it right, if we should do it. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@310 48953598-375a-da11-a14b-00016c27c3ee --- lib/Maypole.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Maypole.pm b/lib/Maypole.pm index de7fbeb..b14720d 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -185,7 +185,7 @@ sub parse_path { shift @pi while @pi and !$pi[0]; $self->{table} = shift @pi; $self->{action} = shift @pi; - $self->{action} = "index" unless $self->{action}; + $self->{action} ||= "index"; $self->{args} = \@pi; } -- 2.39.5