1. Toby Inkster
  2. p5-web-magic

Commits

Toby Inkster  committed 95a6c45

Method installer in AUTOLOAD uses subname

  • Participants
  • Parent commits b2437ff
  • Branches default

Comments (0)

Files changed (1)

File lib/Web/Magic.pm

View file
  • Ignore whitespace
 	if (1) # if we ever start to vary autoloaded methods on a per-object basis,
 	{      # need to turn this off.
 		no strict 'refs';
-		*{$method} = $ref;
+		*{$method} = subname $method = $ref;
 	}
 	
 	goto &$ref;