in reply to Re^2: Inheritance without defining the object on inherited module
in thread Inheritance without defining the object on inherited module
Its simple :P use Log::Log4perl / Log::Log4perl::FAQ
Does this make sense ?
Employee::logger_outfile( "/path/Dir" ); ... ##Employee.pm my $outfile ; sub Employee::logger_outfile { my $path = shift; croak "This is not a method" if ref $path or int@_; $outfile = $path; } sub Employee::logger { open ... $outfile ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inheritance without defining the object on inherited module
by thanos1983 (Parson) on May 18, 2015 at 18:54 UTC |