https://github.com/exercism/perl5
Exercism exercises in Perl 5.
https://github.com/exercism/perl5
community-contributions-paused exercism-track maintained perl
Last synced: 17 days ago
JSON representation
Exercism exercises in Perl 5.
- Host: GitHub
- URL: https://github.com/exercism/perl5
- Owner: exercism
- License: mit
- Created: 2014-02-28T03:35:06.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T23:15:34.000Z (about 2 months ago)
- Last Synced: 2025-04-28T11:28:18.286Z (24 days ago)
- Topics: community-contributions-paused, exercism-track, maintained, perl
- Language: Perl
- Homepage: https://exercism.org/tracks/perl5
- Size: 2.05 MB
- Stars: 30
- Watchers: 12
- Forks: 55
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Exercism Perl Track
Exercism exercises in Perl
## Dependencies
Each exercise has its own cpanfile (if necessary) for any dependencies it might have.
Other dependencies can be found in and installed with the top level cpanfile.It is recommended to use [Carton].
Install the Carton module, run `carton install` to install the dependencies from the cpanfile, then prepend `carton exec` to your commands to include the locally installed dependencies.## Adding/Updating an Exercise
Each exercise should have a `template-data.yaml` file inside a directory named `.meta` (please add one if the exercise does not have one yet).
This is used by the `exercise-gen.pl` script in the `bin` directory to generate the module and test for an exercise.
Documentation for the generator can be found in the `bin` directory.## Testing the Tests
The Exercism system allows us to have example implementations in the directory of each exercise.
If they are in the `.meta` directory they won't be copied to the users. (which is a good thing).
### Testing All the Exercises
Run the full tests with
prove -r exercises/practice/*/.meta/solutions
### Testing a Single Exercise
If a test is run as
prove exercises/example-exercise/.meta/solutions/example-exercise.t
the test will run using the example in the `.meta/solutions` directory.
## Contributing Guide
Please see the [contributing guide] for information from Exercism.
When editing Markdown files in this repository, please use one line ↔ one sentence.### Perl icon
The onion is the logo of the [Perl Foundation].
It is trademarked, and we have adapted it--changing the color--with their permission.
The Perl Foundation does not support or endorse Exercism.[Carton]: https://metacpan.org/pod/Carton
[contributing guide]: https://exercism.org/docs/building
[Exercism problem specification]: https://github.com/exercism/problem-specifications
[Perl Foundation]: https://www.perlfoundation.org/