The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#line 1
package Test::SharedFork::Scalar;
use strict;
use warnings;
use base 'Tie::Scalar';

# create new tied scalar
sub TIESCALAR {
    my ($class, $initial, $share) = @_;
    bless { share => $share }, $class;
}

sub FETCH {
    my $self = shift;
    $self->{share}->get('scalar');
}

sub STORE {
    my ($self, $val) = @_;
    my $share = $self->{share};
    $share->set('scalar' => $val);
}

1;