Acme-Cat-Schroedinger

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

Acme-Cat-Schroedinger

A newly-created Acme::Cat::Schroedinger could be anything. It could be cooperative, and be anything you want it to be. It could be perverse and will never be what you want it to be. Or it could behave like the original Schroedinger's Cat and its beha...

INSTALLATION

To install this module, run the following commands:

	perl Build.PL
	./Build
	./Build test
	./Build install

lib/Acme/Cat/Schroedinger.pm  view on Meta::CPAN

			'${}' => sub {return ($_[0]=$coopRef // \0);}, # todo: include temperament
			'*{}' => sub {return ($_[0]=$coopRef // \*{''});}, # todo: include temperament
		);
		return $overload{$attr};
	};
	bless $self, $class;
}

=head1 SYNOPSIS

A newly-created Acme::Cat::Schroedinger could be anything. It could be cooperative, and be anything you want it to be. It could be perverse and will never be what you want it to be. Or it could behave like the original Schroedinger's Cat and its beha...

	my $cat = Acme::Cat::Schroedinger->new();
	print %{$cat}; # The cat is now an empty hashref, and does not die.
	
	# or...
	my $cat = Acme::Cat::Schroedinger->new(temperament=>'perverse');
	print %{$cat}; # The cat is guaranteed not to be a hashref (or anything else you expect it to be), and thus will die.

	# or...
	my $cat = Acme::Cat::Schroedinger->new(temperament=>'random');



( run in 0.382 second using v1.01-cache-2.11-cpan-1c8d708658b )