Commits

Toby Inkster committed 6ed1a6d

localize $_

  • Participants
  • Parent commits 4e3a1ad

Comments (0)

Files changed (1)

lib/Type/Params.pm

 sub _mkslurpy
 {
 	my ($name, $type, $tc, $i) = @_;
+	$name = 'local $_' if $name eq '$_';
+	
 	$type eq '@'
 		? sprintf(
 			'%s = [ @_[%d..$#_] ];',