in reply to Re (tilly) 3: Filehandles vs. Packages: And the winner is...
in thread Filehandles vs. Packages: And the winner is...
although the following is also interestingpackage Snafu; use Carp 'cluck'; sub new { warn join ',',@_; } 1; Snafu::new("Test"); Snafu->new("Test");
package Snafu; use Carp 'cluck'; sub new { cluck join ',',@_; } sub _new { goto &new } 1; Snafu::new("Test"); Snafu->new("Test"); Snafu->_new("test");
|
|---|