markjugg has asked for the wisdom of the Perl Monks concerning the following question:
The other possibility seems to be make the function an OO method, which gives me the syntax:example: my_function($DBH, @args)
That perhaps might look cleaner, but OTOH, it doesn't really save much typing per function call. So the question is, when developing a routine that's always going to need a object reference to be passed in, what's a good style to handle this in? Thanks.example: $DBH->my_function(@args)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: need help developing fly OO style
by btrott (Parson) on Aug 12, 2000 at 21:59 UTC | |
by markjugg (Curate) on Aug 12, 2000 at 12:25 UTC | |
|
Re: need help developing fly OO style
by chromatic (Archbishop) on Aug 12, 2000 at 22:27 UTC | |
by markjugg (Curate) on Aug 12, 2000 at 12:32 UTC | |
|
Re: need help developing fly OO style
by tilly (Archbishop) on Aug 12, 2000 at 23:02 UTC |