Other comments above give you the explanation on what happened.
Me, when I want to put the lines of a text file in an array, I usually write:
my @data = map { chomp; $_ } <>;And when I want to output it, I write:
print "$_\n" for @dataIn Perl6 I'd write:
my @data = lines; .say for @data;
In reply to Re: Space prepended to Array Print
by grondilu
in thread Space prepended to Array Print
by JockoHelios
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |