in reply to Good package practices
package My::Example; sub new { return bless {}; } sub GetLinks { # ... }
#!/usr/bin/perl use warnings; use strict; use lib '/path/to/lib'; use My::Example; my $example = My::Example->new(); my $links = $example->GetLinks();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Good package practices
by joe_kool (Novice) on Jan 26, 2006 at 22:31 UTC | |
by kwaping (Priest) on Jan 26, 2006 at 22:46 UTC | |
Re^2: Good package practices
by joe_kool (Novice) on Jan 27, 2006 at 20:14 UTC |