Public Scratchpad | Download, Select Code To D/L |
my $super_scalar = SuperScalar->new(length => 15);Which would make $special_scalar type 'SuperScalar', though as you can see, the mechanics of this are not so simply implemented.
The limitation, it seems, is that when a scalar imports a value from another, it doesn't import the tied type.$super_scalar = "Something Really Big..."; print $super_scalar,"$_\n"; # Prints "Something Reall\n"