Created
February 27, 2012 15:49
-
-
Save perforb/1924852 to your computer and use it in GitHub Desktop.
It sprits a character string in N characters.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use 5.12.0; | |
use warnings; | |
# It sprits a character string in N characters. | |
my @alphabets = join('', 'a' .. 'y') =~ m/.{1,3}/g; | |
say join ',', @alphabets; | |
# >> abc,def,ghi,jkl,mno,pqr,stu,vwx,y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment