Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2019 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/d82de081a2f0181e60796ccded0b66fb to your computer and use it in GitHub Desktop.
Save Whateverable/d82de081a2f0181e60796ccded0b66fb to your computer and use it in GitHub Desktop.
evalable6
say(sprintf("%02d", $_)) for 01 .. 63
Potential difficulties:
Leading 0 has no meaning. If you meant to create an octal number, use '0o' prefix; like, '0o1'. If you meant to create a string, please add quotation marks.
at /tmp/_PyaaYnZNi:1
------> say(sprintf("%02d", $_)) for 01⏏ .. 63
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment