- or download this
$_='gcc 92 !$* % "awk in I$: ar& $:a"';
foreach (/(\S)/g) {
...
y;1;#;;
print;
- or download this
$_='gcc 92 !$* % "awk in I$: ar& $:a"';
foreach $char (/\S/g) { # Capturing parens not needed
...
tr/1/#/;
print $_;
- or download this
$str.= substr(unpack("B*",pack(n,unpack("c",$char))),-4);
unpack("c",$char) # is the same as
...
substr(..., -4) # Get the last 4 chars: 0111
- or download this
01110011001110010010
00010100101001010010
00010111101110011110
10010100101000010010
01100100101000010010
- or download this
tr/01/ #/; - or download this
### ## ### # #
# # # # # # #
# #### ### ####
# # # # # # #
## # # # # #