User Tools

Site Tools


newdevs:perl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
newdevs:perl [2024/01/18 10:06] – [Checking your work] sandbergjanewdevs:perl [2024/01/18 10:11] (current) – fix headings, add a link sandbergja
Line 2: Line 2:
 ====== The Perl Logic Layer ====== ====== The Perl Logic Layer ======
  
 +===== Structure =====
  
- 
- 
- 
-==== Structure ==== 
  
 Most of Evergreen's business logic can be found in perl modules.  In the git repository, these can be found at Open-ILS/src/perlmods/lib.  Perl modules typically have the .pm file extension. Most of Evergreen's business logic can be found in perl modules.  In the git repository, these can be found at Open-ILS/src/perlmods/lib.  Perl modules typically have the .pm file extension.
Line 14: Line 11:
 There are many Perl scripts throughout the project.  Perl scripts generally have the .pl file extension. There are many Perl scripts throughout the project.  Perl scripts generally have the .pl file extension.
  
-==== Dependencies ====+===== Dependencies =====
  
 Evergreen's Perl code relies on many packages from CPAN.  They are installed by your operating system's package manager and cpan itself when you run the Open-ILS/src/extras/Makefile.install Makefile.  When you need to add or remove a dependency, do so for all of the operating systems listed in the Open-ILS/src/extras/install directory. Evergreen's Perl code relies on many packages from CPAN.  They are installed by your operating system's package manager and cpan itself when you run the Open-ILS/src/extras/Makefile.install Makefile.  When you need to add or remove a dependency, do so for all of the operating systems listed in the Open-ILS/src/extras/install directory.
  
-==== Checking your work ====+===== Checking your work =====
  
 Here are some things you can do to check your work while working with Evergreen's perl code: Here are some things you can do to check your work while working with Evergreen's perl code:
Line 29: Line 26:
   * Temporarily adding print or logging statements to your work.  If you'd like to print an array or hash, try using Data::Dumper.   * Temporarily adding print or logging statements to your work.  If you'd like to print an array or hash, try using Data::Dumper.
  
-==== Using Cstore to interact with the database ====+===== Using Cstore to interact with the database =====
  
 A lot of the Perl code uses a Cstore editor to create, retrieve, update, delete, and search records in the database.  The following examples are loosely based on the Carousel Perl module: A lot of the Perl code uses a Cstore editor to create, retrieve, update, delete, and search records in the database.  The following examples are loosely based on the Carousel Perl module:
Line 133: Line 130:
      
   1;   1;
-==== Evergreen Conference Sessions ====+ 
 +===== Evergreen Conference Sessions =====
   * [[https://www.youtube.com/watch?v=fXrhpJUpFWE&ab_channel=EvergreenLibrarySystem|Making Perl Work for You in Evergreen, by Galen Charlton & Mike Rylander]]   * [[https://www.youtube.com/watch?v=fXrhpJUpFWE&ab_channel=EvergreenLibrarySystem|Making Perl Work for You in Evergreen, by Galen Charlton & Mike Rylander]]
 +
 +===== Further Reading =====
 +
 +  * [[http://www.perlmeme.org/howtos/using_perl/dereferencing.html|Dereferencing in Perl]] from perlmeme.org
newdevs/perl.1705590406.txt.gz · Last modified: 2024/01/18 10:06 by sandbergja

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.