From: Breno G. de Oliveira Date: Sun, 4 Oct 2009 08:10:59 +0000 (-0300) Subject: implemented 'duplicate' as 'copy' alias X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=506445434c661b3ddf95fb6853aff27eb900f474;p=sdlgit%2FSDL_perl.git implemented 'duplicate' as 'copy' alias --- diff --git a/lib/SDL/Game/Rect.pm b/lib/SDL/Game/Rect.pm index 15fe1c9..92e0948 100644 --- a/lib/SDL/Game/Rect.pm +++ b/lib/SDL/Game/Rect.pm @@ -210,7 +210,9 @@ sub midbottom { ## methods ## ############################### -sub duplicate { +{ + no strict 'refs'; + *{'duplicate'} = *{copy}; } sub copy {