#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my $string = q{'som,ething' another
'thin'g
' 'her
,e
' gggh*}; my @spt = split(/\s(?=\s+)/, $string);
print $_."\n" foreach @spt;
IyEvdXNyL2Jpbi9wZXJsCnVzZSBzdHJpY3Q7CnVzZSB3YXJuaW5nczsKdXNlIERhdGE6OkR1bXBlcjsKbXkgJHN0cmluZyA9IHF7J3NvbSxldGhpbmcnIGFub3RoZXIgJ3RoaW4nZycgJ2hlcixlJyBnZ2doKn07Cm15IEBzcHQgPSBzcGxpdCgvXHMoPz1ccyspLywgJHN0cmluZyk7CnByaW50ICRfLiJcbiIgZm9yZWFjaCBAc3B0Ow==