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();
In reply to Re: Good package practices
by kwaping
in thread Good package practices
by joe_kool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |