Skip to content

Commit

Permalink
Fix Perl 5.14.0 warnings
Browse files Browse the repository at this point in the history
qw() now warns when it is implicitly used as parenthesis, so adding
parenthesis fixes the warning.
  • Loading branch information
zorkian committed Jan 3, 2013
1 parent 596ae34 commit fae959c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cgi-bin/DW/VirtualGift.pm
Expand Up @@ -1157,7 +1157,7 @@ sub display_vieweditlinks {
delete $modes{delete} if $self->is_active;

my $text = "";
foreach my $mode qw( view review delete ) {
foreach my $mode (qw( view review delete )) {
next unless $modes{$mode};
$text .= ' | ' if $text;
$text .= "<a href='$linkroot?mode=$mode&id=$id'>$modes{$mode}</a>";
Expand Down
2 changes: 1 addition & 1 deletion cgi-bin/LJ/Web.pm
Expand Up @@ -3160,7 +3160,7 @@ LOGIN_BAR
};

# cycle through all possibilities, add the valid ones
foreach my $view_type qw( mine site light original ) {
foreach my $view_type (qw( mine site light original )) {
# only want to offer this option if user is logged in and it's not their own journal, since
# original will take care of that
if ( $view_type eq "mine" and $current_style ne $view_type and $remote and not $remote->equals( $journal ) ) {
Expand Down

0 comments on commit fae959c

Please sign in to comment.