Skip to content

Migrate Samples to Perl 5.42#5954

Open
pascalecu wants to merge 20 commits into
TheRenegadeCoder:mainfrom
pascalecu:perl/migrate-to-perl-5-42
Open

Migrate Samples to Perl 5.42#5954
pascalecu wants to merge 20 commits into
TheRenegadeCoder:mainfrom
pascalecu:perl/migrate-to-perl-5-42

Conversation

@pascalecu
Copy link
Copy Markdown
Member

Congrats on taking the first step to contributing to the Sample Programs repository maintained by The Renegade Coder!
For simplicity, please make sure that your pull request includes one and only one contribution.

Please fill one of the sections below as applicable.
Please also add any other relevant information to the Notes section at the bottom.
You may delete or just ignore any other sections.

I Am Modifying an Existing Code Snippet or Existing Tests

  • I fixed Migrate Perl Samples to 5.42 #5952
  • I did not include any extra folders/libraries
  • I have read about modifying existing code snippets or tests in the contributing documentation
  • I have explained why this modification is necessary either in the issue linked above or in the notes below
  • I named the pull request using Modify {PROJECT} {tests} in {LANGUAGE} format

Other Notes

I changed the Perl version to 5.42 all the way back in #5100, but I didn't update the samples so they're up to par with modern Perl practices (or just Perl practices in general). A lot of the samples were very unidiomatic, messy (as in no formatting whatsoever) and don't represent how Perl has changed in the last 20 years.

@pascalecu pascalecu requested a review from a team May 14, 2026 12:18
@pascalecu pascalecu self-assigned this May 14, 2026
@pascalecu pascalecu enabled auto-merge (squash) May 14, 2026 12:18
@github-actions github-actions Bot added enhancement Any code that improves the repo reverse string See: https://sampleprograms.io/projects/reverse-string/ fizz buzz See: https://sampleprograms.io/projects/fizz-buzz/ file input output See: https://sampleprograms.io/projects/file-input-output/ baklava See: https://sampleprograms.io/projects/baklava/ fibonacci See: https://sampleprograms.io/projects/fibonacci/ factorial See: https://sampleprograms.io/projects/factorial/ labels May 14, 2026
@github-actions github-actions Bot added prime number See: https://sampleprograms.io/projects/prime-number/ even odd See: https://sampleprograms.io/projects/even-odd/ rot13 See: https://sampleprograms.io/projects/rot13/ bubble sort See: https://sampleprograms.io/projects/bubble-sort/ selection sort See: https://sampleprograms.io/projects/selection-sort/ quick sort See: https://sampleprograms.io/projects/quick-sort/ merge sort See: https://sampleprograms.io/projects/merge-sort/ insertion sort See: https://sampleprograms.io/projects/insertion-sort/ capitalize See: https://sampleprograms.io/projects/capitalize/ binary search See: https://sampleprograms.io/projects/binary-search/ linear search See: https://sampleprograms.io/projects/linear-search/ palindromic number See: https://sampleprograms.io/projects/palindromic-number/ longest word See: https://sampleprograms.io/projects/longest-word/ labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

baklava See: https://sampleprograms.io/projects/baklava/ binary search See: https://sampleprograms.io/projects/binary-search/ bubble sort See: https://sampleprograms.io/projects/bubble-sort/ capitalize See: https://sampleprograms.io/projects/capitalize/ enhancement Any code that improves the repo even odd See: https://sampleprograms.io/projects/even-odd/ factorial See: https://sampleprograms.io/projects/factorial/ fibonacci See: https://sampleprograms.io/projects/fibonacci/ file input output See: https://sampleprograms.io/projects/file-input-output/ fizz buzz See: https://sampleprograms.io/projects/fizz-buzz/ insertion sort See: https://sampleprograms.io/projects/insertion-sort/ linear search See: https://sampleprograms.io/projects/linear-search/ longest word See: https://sampleprograms.io/projects/longest-word/ merge sort See: https://sampleprograms.io/projects/merge-sort/ palindromic number See: https://sampleprograms.io/projects/palindromic-number/ prime number See: https://sampleprograms.io/projects/prime-number/ quick sort See: https://sampleprograms.io/projects/quick-sort/ reverse string See: https://sampleprograms.io/projects/reverse-string/ rot13 See: https://sampleprograms.io/projects/rot13/ selection sort See: https://sampleprograms.io/projects/selection-sort/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Perl Samples to 5.42

1 participant