Skip to content

Commit

Permalink
localize $_
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Nov 6, 2013
1 parent 1e794e1 commit 1d4d2ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Type/Params.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ BEGIN {
sub _mkslurpy
{
my ($name, $type, $tc, $i) = @_;
$name = 'local $_' if $name eq '$_';

$type eq '@'
? sprintf(
'%s = [ @_[%d..$#_] ];',
Expand Down

0 comments on commit 1d4d2ce

Please sign in to comment.