Group
Extension

Matches 1

File-SharedVar ( C/CD/CDRAKE/File-SharedVar-1.00.tar.gz, CDRAKE, 2024; MetaCPAN )
File-SharedVar/lib/File/SharedVar.pm ( view source; MetaCPAN )
t environments.

It allows you to read, update, and reset shared variables stored in a file (uses JSON format), making it easy to coordinate between multiple processes.

This module was written to ser
 = 0;

eval {
  require JSON::XS;
  JSON::XS->import; 1;
} or do {
  require JSON;
  JSON->import;
};

#my $json_text = encode_json($data);
#my $decoded_data = decode_json($json_text);

=head1 METHODS
 my $json_text = undef; do { local $/; $json_text=readline($self->{fh}) };
  #my $json_text = undef; do { local $/; my $fh=$self->{fh}; <$fh> };
  &dbg( "$$ post-lock d=$json_text" );
  #my $json_text

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.