User Contributed Perl Documentation Publication(3) Publication::Publication - Perl extension for Publication instances use Publication::Publication; $publication = Publication::Publication->new(database_handle, type, number); $publication->{title}; $publication->{abstract}; ... This module provides an object to represent a publication, and is used to interact with the database. Use this module to interact with publications. Publication::Publication->new(@args): Overloaded: * Given only a database handle, gets type 'TMP' and number of the next available in the database * Given a database handle, a type, and a number, gets the current values for that publication in the database * Given a database handle and a CGI object, creates a publication with the parameters from the CGI object (if they are correctly named) $pub->store(): Stores the current values of the instance in the database $pub->delete(): remove this instance from the database $pub->all_vals(): Use to get all the values of the publication Returns: (number, type, year, year_pub, author, title, venue, citation, status, notes, hide, contact, email, advisor, category, abstract, funding) $pub->get_current_values(): Reloads the current database values for the given number, type of this instance $pub->populate_cgi($cgi): Sets the values of the CGI object to the instances current values. $pub->print($format) Outputs the publication's information given the format string. The following are replaced as noted: %n number %T type %t title %l linked title %Y year %y public year %A author %v venue %C citation %s status %n notes %c contact %e email %a advisor %k category %f funding %F comma seperated funding %b abstract %B link to popup window with abstract (html) Public Members: Anything in the database (num, type, title, ...) None by default. Publication::Search Publication::Form Eric Galis, Copyright 2004 by Eric Galis This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.0 Last change: 2004-04-29 2