You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because it is turned on lexically inside perl5i there is no way to quiet the "subroutine redefined" warning inside alias short of turning off all warnings with -X.
$ perl5i -le 'no warnings; sub foo { 42 } sub { 23 }->alias("foo")'
Subroutine main::foo redefined at /Users/schwern/perl5/perlbrew/perls/perl-v5.12.2/lib/site_perl/5.12.2/perl5i/2/UNIVERSAL.pm line 21.
The simple fix would be to turn off that warning inside alias and assume the user meant to do that.
Thoughts?
The text was updated successfully, but these errors were encountered:
Because it is turned on lexically inside perl5i there is no way to quiet the "subroutine redefined" warning inside
alias
short of turning off all warnings with -X.The simple fix would be to turn off that warning inside
alias
and assume the user meant to do that.Thoughts?
The text was updated successfully, but these errors were encountered: