Skip to content

Commit

Permalink
Quell deprecated syntax warnings in perl 5.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ctfliblime committed Jun 15, 2011
1 parent 935d818 commit bf7e6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Squatting/Controller.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ sub clone {
# view - name of default view
# log - logging object
# app - name of our app
for my $m qw(name urls cr env input cookies state v status headers log view app) {
for my $m (qw(name urls cr env input cookies state v status headers log view app)) {
*{$m} = sub : lvalue { $_[0]->{$m} }
}

# HTTP methods
for my $m qw(get post head put delete options trace connect) {
for my $m (qw(get post head put delete options trace connect)) {
*{$m} = sub { $_[0]->{$m}->(@_) }
}

Expand Down

0 comments on commit bf7e6cf

Please sign in to comment.