AnyData

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  # COUNT THE NUMBER OF HITS FOR A SPECIFIED PAGE IN A WEB LOG
  #
  my $hits = adTie( 'Weblog', 'access.log');
  print adCount( $hits , request => 'mypage.html' );

  # CREATE A CGI POP-UP MENU FROM A LISTING
  # OF THE VALUES OF A TABLE COLUMN
  #
  my $game = adTie( 'Pipe','games.db' );
  my @players  = adColumn( $game, 'player' );
  print CGI::popup_menu( 'players', \@players );

  # SELECT OR MODIFY MULTIPLE ROWS BASED ON COMPLEX CRITERIA
  # (this deletes all North American males over age 30)
  #
  my $data = adTie( 'Tab', 'mydb.tab');
  delete $data->{{ country => qr/us|mx|ca/,
                   gender  => 'eq m',
                   age     => '> 30',
                }};

WHAT ELSE DO I NEED?

     * Perl

     * Additional modules are required for some advanced features,
       see 'perldoc AnyData'.

HOW DO I INSTALL IT?

     1.  Install Perl if not already installed

     2.  Unpack the compressed files.
         (AnyData-version.tar.gz or AnyData-version.zip)

     3a. If you are not familiar with the standard Perl
         makefile method, you can simply copy the files
  
     3b. If you are familiar with the standard Perl make 
         installation, just do as always (perl Makefile.PL; 
         make; make test; make install) this should also 
         work with dmake or nmake. 

HOW DO I USE IT?

     First you might like to try this simple script which 
     creates a database and inserts the string "hello new world"
     into a record  and then retrieves the record and prints it:

     #!perl -w
     use strict;
     use AnyData;
     my $table = adTie ('CSV','test.db','o',{cols=>'id,phrase'});
     $table->{1} = {phrase=>'hello new world'};
     print $table->{1}->{phrase}.

WHERE CAN I GET MORE INFO?

     After installing the module, type "perldoc AnyData" at 
     the command prompt, or just read the documentation at 
     the bottom of the AnyData.pm file.

WHO DUNNIT?

  Jeff Zucker <jeff@vpservices.com>

  Feel free to email me comments and suggestions, but please
  post questions requiring a response to the comp.lang.perl.modules
  newsgroup.

READ MORE AND GRAB THE MODULE AT

   http://www.vpservices.com/jeff/programs/AnyData/

Enjoy!





( run in 0.893 second using v1.01-cache-2.11-cpan-6aa56a78535 )