newdevs:perl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:perl [2024/01/18 10:02] – fix indentation sandbergja | newdevs: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' | Most of Evergreen' | ||
Line 14: | Line 11: | ||
There are many Perl scripts throughout the project. | There are many Perl scripts throughout the project. | ||
- | ==== Dependencies ==== | + | ===== Dependencies |
Evergreen' | Evergreen' | ||
- | ==== Checking your work ==== | + | ===== Checking your work ===== |
Here are some things you can do to check your work while working with Evergreen' | Here are some things you can do to check your work while working with Evergreen' | ||
- | * If it is in an OpenSRF method: Build it, install it, and restart your services. | + | * If it is in an OpenSRF method: Build it, install it, and restart your services. |
+ | * To build and install the perl code, you can run '' | ||
* Write some tests to confirm that your code is working as intended, without any unintended side effects. | * Write some tests to confirm that your code is working as intended, without any unintended side effects. | ||
- | * Run `perl -cw [name of file]` to check your syntax and check for warnings. | + | * Run '' |
- | * Run perlcritic on your code to check for common gotchas and readability. | + | * Run perlcritic on your code to check for common gotchas and readability. |
* Temporarily adding print or logging statements to your work. If you'd like to print an array or hash, try using Data:: | * Temporarily adding print or logging statements to your work. If you'd like to print an array or hash, try using Data:: | ||
- | ==== 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. | A lot of the Perl code uses a Cstore editor to create, retrieve, update, delete, and search records in the database. | ||
Line 132: | Line 130: | ||
| | ||
1; | 1; | ||
- | ==== Evergreen Conference Sessions ==== | + | |
+ | ===== Evergreen Conference Sessions | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | ===== Further Reading ===== | ||
+ | |||
+ | * [[http:// |
newdevs/perl.1705590174.txt.gz · Last modified: 2024/01/18 10:02 by sandbergja