mrborisguy has asked for the wisdom of the Perl Monks concerning the following question:
and use that if it's not null, or initialize it if it is, so for examplemy static $dbh
> my $ex1 = new DataSomething(); my $ex2 = new DataSomething(); $ex1->set_index( 1 ); $ex2->set_index( 2 ); # so they'll get different data $ex1->get_data(); # this would initialize the db and get the data $ex2->get_data(); # this would use the already initialized db
janitored by ybiC: Balanced <code> tags around codeblock, as per Monastery convention
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: javalike static
by perrin (Chancellor) on Oct 28, 2004 at 21:36 UTC | |
|
Re: javalike static
by Happy-the-monk (Canon) on Oct 28, 2004 at 21:01 UTC | |
by mrborisguy (Hermit) on Oct 28, 2004 at 21:22 UTC |