SNOW
Author: regregex
Category: Christmas Challenge
System: IBM PC compatible
Language: Perl 5.5.3
Len source code: 116 bytes
Len exe file: 116 bytes
Len code only: 116 bytes
Instructions:
Perl is typically pre-installed on Linux and related OSes. Type
perl -v
at a command prompt to check. Otherwise install the Perl interpreter
for your platform. ( https://www.perl.org/get.html )
On Windows, it is available as part of MSYS2
( https://www.msys2.org/ ) but Strawberry Perl is also suitable.
( https://strawberryperl.com/ )
Once installed, enter the following on the command line:
perl snow.pl
This script requires a series 5 Perl interpreter such as the latest
version, 5.42.0.1.
Description: The script displays a specific snowflake pattern on the
screen.
It converts an array of integers to a binary digit string and makes
three mirrored copies, while adding axes. The script then converts the
0s and 1s to the required space and star characters before printing to
standard output.