in reply to Structure of a custom class (using Apache::Session)
What do you mean by "singular data store connection"? All this class seems to do is to add a layer of indirection over Apache::Session::MySQL. That can be useful, but I fail to see what it's trying to accomplish here. Could you elaborate a bit?
Off topic, using map in a void context is weird if not error-prone or slow. You should replace
map{$self->{session}->{$_} = $args{$_}} keys %args;
with
$self->{session}->{$_} = $args{$_} foreach keys %args;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Structure of a custom class (using Apache::Session)
by jeyroz (Monk) on Jun 15, 2005 at 18:55 UTC | |
by ikegami (Patriarch) on Jun 15, 2005 at 19:20 UTC | |
by jeyroz (Monk) on Jun 15, 2005 at 20:11 UTC | |
by mpeters (Chaplain) on Jun 15, 2005 at 19:26 UTC |