Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2019 04:57
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/e7e70197f1772d3efa417272c4728ee8 to your computer and use it in GitHub Desktop.
Save Whateverable/e7e70197f1772d3efa417272c4728ee8 to your computer and use it in GitHub Desktop.
evalable6
print(sprintf("%02d", $_)) for 01 .. 15
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/dyXK1dLiJ6:1
------> print(sprintf("%02d", $_)) for 01⏏ .. 15
010203040506070809101112131415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment