Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl 5 shortest fizzbuzz #42

Open
ogdenpm opened this issue Oct 5, 2022 · 0 comments
Open

Perl 5 shortest fizzbuzz #42

ogdenpm opened this issue Oct 5, 2022 · 0 comments

Comments

@ogdenpm
Copy link

ogdenpm commented Oct 5, 2022

Sometime ago I wrote a perl 5 fizzbuzz. In revisiting the challenge have been able to reduce the program size to 51 bytes
warn"Fizz"x!($%3)."Buzz"x!($%5)||$_,$/for 1..100;
Note unlike perl 6, "say" cannot be used to save an extra byte as it is not inbuilt.

The code is also in the attached .txt file
fp51.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant