Advent Calendar - December 25, 2021

Saturday, Dec 25, 2021| Tags: Perl

Advent Calendar 2021

|   Day 24   |   Day 25   |


Let’s conclude the event with the final present from me to all Perl fans. This video is picked from my YouTube Channel.



Task #1: Swap Odd/Even bits


You are given a positive integer $N less than or equal to 255.

Write a script to swap the odd positioned bit with even positioned bit and print the decimal equivalent of the new binary representation.





If you have any suggestion then please do share with us perlweeklychallenge@yahoo.com.

Advent Calendar 2021

SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me