Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daftmaple/adventofcode
you use perl for AoC because you're experienced at perl. I do perl because I love pain. We are not the same
https://github.com/daftmaple/adventofcode
advent-of-code perl
Last synced: about 2 months ago
JSON representation
you use perl for AoC because you're experienced at perl. I do perl because I love pain. We are not the same
- Host: GitHub
- URL: https://github.com/daftmaple/adventofcode
- Owner: daftmaple
- Created: 2019-12-06T12:10:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T14:36:50.000Z (about 2 months ago)
- Last Synced: 2024-12-12T15:36:04.308Z (about 2 months ago)
- Topics: advent-of-code, perl
- Language: Perl
- Homepage: https://adventofcode.com/
- Size: 264 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code (in Perl)
In order to run the code, make sure that Perl 5 is installed in `/usr/bin/perl`.
There are some cases where you need to install CPAN modules.
## Running perl with docker
On the current directory, execute
```sh
docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp perl:5 perl q01.pl
```Or use the `run.pl` script on the root directory if you have perl already (I don't know why would you do this)
```sh
./run.pl
```Example:
```sh
./run.pl 2023 1 b
```## Create template for day
Use `generate.pl` with the same template as `run.pl`.
```sh
./run.pl 2023 2 a
```