Created
May 10, 2012 23:29
-
-
Save Siddhant/2656561 to your computer and use it in GitHub Desktop.
This file contains 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
my $n = 45657; | |
my $ns = $n.Str; | |
my @digits = $ns.split(''); | |
@digits = @digits.push(@digits.shift); #trying to rotate the digits; expected: 5 6 5 7 4 | |
say @digits; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment