use Attribute::Persistent; my %hash :persistent; # Value retained between calls to the program. $hash{counter}++; # Explicitly provide a filename. my %hash2 :persistent(SessionTable);