in reply to Re: Storable - File empties itself?
in thread Storable - File empties itself?
On the "Useraction" we only check if the Perl-Storage file exists. Since this kind of system is only adding/overwriting data and not deleting anything we would add an entry to the Perl-Storage if it's existing otherwise overwrite it.if ( $storage->{$id} ) { # show userid + timestamp } else { # show userid + "never logged in" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Storable - File empties itself?
by hippo (Archbishop) on Apr 13, 2023 at 10:35 UTC | |
by feumw (Sexton) on Apr 13, 2023 at 11:47 UTC | |
by eyepopslikeamosquito (Archbishop) on Apr 14, 2023 at 09:19 UTC | |
by feumw (Sexton) on Apr 18, 2023 at 06:34 UTC | |
by haukex (Archbishop) on Apr 14, 2023 at 07:22 UTC | |
|
Re^3: Storable - File empties itself?
by afoken (Chancellor) on Apr 13, 2023 at 20:12 UTC | |
by feumw (Sexton) on Apr 14, 2023 at 07:14 UTC | |
by marto (Cardinal) on Apr 14, 2023 at 07:22 UTC | |
by afoken (Chancellor) on Apr 14, 2023 at 09:09 UTC | |
by Anonymous Monk on Apr 14, 2023 at 10:07 UTC | |
by feumw (Sexton) on Apr 18, 2023 at 06:36 UTC | |
|
Re^3: Storable - File empties itself?
by NERDVANA (Priest) on Apr 14, 2023 at 18:07 UTC |