X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=lib%2FOnis%2FData%2FPersistent.pm;h=8c08f28b65609e6cee633c2f79c61750e117311a;hb=f980a0f03f3f7727a602b94251f8d6d1e3a15178;hp=3036e164aa77f76c8417c7893f1327a0ed35bb58;hpb=2d842621d5f6150b3adec280a7472e7aabc598d8;p=onis.git diff --git a/lib/Onis/Data/Persistent.pm b/lib/Onis/Data/Persistent.pm index 3036e16..8c08f28 100644 --- a/lib/Onis/Data/Persistent.pm +++ b/lib/Onis/Data/Persistent.pm @@ -56,13 +56,14 @@ if (get_config ('storage_module')) if ($@) { print STDERR $/, __FILE__, ": Could not load storage module ``$StoreModule''. Are you sure it exists?"; + print STDERR $/, __FILE__, ": Error while loading was: $@"; exit (1); } unshift (@Onis::Data::Persistent::ISA, $mod_name); } -return (0); +return (1); =head1 INTERFACE @@ -80,6 +81,11 @@ world - a table. The name must be unique for each calling method's namespace. Since this is a constructor it returns an object. The object "knows" the folling methods: +=item B<$data-Eget> (I<$key>) + +Returns the data associated with the given I<$key> pair or an empty list if no +data has been stored under this tupel before.. + =item B<$data-Eput> (I<$key>, I<@fields>) Stores the given values in the data structure. How this is done is described @@ -87,11 +93,6 @@ below in L. Doesn't return anything. The number of entries in I<@fields> has to match the number of entries in I<@field_names> when creating the object using B. -=item B<$data-Eget> (I<$key>) - -Returns the data associated with the given I<$key> pair or an empty list if no -data has been stored under this tupel before.. - =item B<$data-Ekeys> ([I<$field>, ...]) Returns a list of all the keys defined for this object. If one field is given