use strict; use warnings; use diagnostics; package pkgsam1; sub min{ print "min"; } sub min{ print "min11"; }
Subroutine min redefined at test.pl line 8 (#1) (W redefine) You redefined a subroutine. To suppress this warning +, say { no warnings 'redefine'; eval "sub name { ... }"; }
In reply to Re: over loading
by Anonymous Monk
in thread over loading
by saranperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |