Hello, When I create a package, and call its methods by both object way and function (exported) way, how to avoid the conflict in arguments passing?
for exmaple, package myclass; require Exporter; our @ISA = qw/Exporter/; our @EXPORT = qw/my_method/; sub new { ... } sub my_method { my $self = shift; my @arg = @_; ... } __END__ But for function calling, "my $self = shift;" shouldn't be used. So how to make both function calling and object calling work together? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/