On 05/18/2017 12:22 AM, ToddAndMargo wrote:
Hi All,Any of you guys have a favorite way to remove all spaces from a string? (Otherwise I will use a regex.) Many thanks, -T
I like this. Any objections to it? perl6 -e 'my $x="1234, 5678"; $x ~~ tr/ //; say $x;' 1234,5678 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Computers are like air conditioners. They malfunction when you open windows ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~