Strings In Depth10 / 18
Up next

Split into a list

use strict;
use warnings;
use feature 'say';

my $csv = "a,b,c";
# split turns text into a list of pieces
my @parts = split /,/, $csv;
say scalar(@parts);
say "@parts";
What you're solving

split on a pattern