Attribute-Tie

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      my %db  : Tie('DB_File', ....); # ties to DB_File;
      my @fie : Tie('File', ...);     # ties to Tie::File;

    You do not have to "use Tie::Whatever"; Attribute::Tie does it for you.

  Attribute::Tie vs Attribute::Handlers' autotie
    I wrote this module for two reasons:

    semantics
      Attribute::Handlers offers an alternate approach via autotie. That
      looks like this.

        use Attribute::Handlers autotie => { File => 'Tie::File' };
        my @array : File('array.txt');

      Which is handy but it hides the fact that the variable is actually
      tied. I want the attribute name to reflect what is really done to the
      variable.

    error handling
      unlike most attributes, "tie"-ing variable may fail. This is

lib/Attribute/Tie.pm  view on Meta::CPAN


=head2 Attribute::Tie vs Attribute::Handlers' autotie

I wrote this module for two reasons:

=over 2

=item semantics

L<Attribute::Handlers> offers an alternate approach via autotie.  That
looks like this.

  use Attribute::Handlers autotie => { File => 'Tie::File' };
  my @array : File('array.txt');

Which is handy but it hides the fact that the variable is actually
tied.  I want the attribute name to reflect what is really done to the
variable.

=item error handling



( run in 0.306 second using v1.01-cache-2.11-cpan-64827b87656 )