Peter
Peter Campbell Smith

Women and equality

Weekly challenge 124 — 2 August 2021

Week 124: 2 Aug 2021

Task 1

Task — Happy women’s day

Write a script to print the Venus Symbol, international gender symbol for women. Please feel free to use any character.

    ^^^^^
   ^     ^
  ^       ^
 ^         ^
 ^         ^
 ^         ^
 ^         ^
 ^         ^
  ^       ^
   ^     ^
    ^^^^^
      ^
      ^
      ^
    ^^^^^
      ^
      ^

Analysis

I did not submit a solution at the time, but have written this later.

Not much to say about this one! The symbol is available in Unicode: ♀ (hex 2640) if you need it.

Script


#!/usr/bin/perl

# Blog: http://ccgi.campbellsmiths.force9.co.uk/challenge

use v5.26;    # The Weekly Challenge - 2021-08-02
use utf8;     # Week 124 - task 1 - Happy womens day
use warnings; # Peter Campbell Smith
binmode STDOUT, ':utf8';

say '
Happy International Women’s Day!

        # # # # #
      #           #
    #               #
  #                   #
  #                   #
  #                   #
  #                   #
  #                   #
    #               #
      #           #
        # # # # #
            #
            #
            #
        # # # # #
            #
            #
';

Output


Happy International Women’s Day!

        # # # # #
      #           #
    #               #
  #                   #
  #                   #
  #                   #
  #                   #
  #                   #
    #               #
      #           #
        # # # # #
            #
            #
            #
        # # # # #
            #
            #

 

Any content of this website which has been created by Peter Campbell Smith is in the public domain