SPOPS::Tie

SPOPS::Tie is a simple class that implements tied hash with some goodies.
Download

SPOPS::Tie Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Winters
  • Publisher web site:
  • http://search.cpan.org/~cwinters/SPOPS-0.87/SPOPS/SQLInterface.pm

SPOPS::Tie Tags


SPOPS::Tie Description

SPOPS::Tie is a simple class that implements tied hash with some goodies. SPOPS::Tie is a simple class that implements tied hash with some goodies.SYNOPSIS # Create the tied hash use SPOPS::Tie; my ( ta ); my @fields = qw( first_name last_name login birth_date ); tie ta, 'SPOPS::Tie', $class, @fields; # Store some simple properties $data{first_name} = 'Charles'; $data{last_name} = 'Barkley'; $data{login} = 'cb'; $data{birth_date} = '1957-01-19'; # Store a temporary property $data{tmp_rebound_avg} = 11.3; while ( my ( $prop, $val ) = each ta ) { printf( "%-15s: %sn", $prop, $val ); } # Note that output does not include 'tmp_rebound_avg' >first_name : Charles >login : cb >last_name : Barkley >birth_date : 1957-01-19 print "Rebounding Average: $data{tmp_rebound_avg}n"; # But you can access it still the same >Rebounding Average: 11.3 Requirements: · Perl


SPOPS::Tie Related Software