aboutsummaryrefslogtreecommitdiff
path: root/challenge-002/ryan-thompson/perl6/ch-1.p6
blob: 626b52cc1fe6fa3e660473eb0504a721c6d94df2 (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env perl6

# ch-1.p6 - Remove leading zeroes from positive numbers
#
# Ryan Thompson <rjt@cpan.org>

use v6;

S/^0+ <?[ 1..9 ]>//.say for $*ARGFILES.lines;