A
Aaron DeLoach
I am trying to split a string based on a multiple character delimiter and
place it into a hash. After a few hours I came up with the following:
my $str = "color%=red%;lang%=engl";
my %hash = split /%;|%=/, $str, -2;
It works, but I would like to know if it's the right method
place it into a hash. After a few hours I came up with the following:
my $str = "color%=red%;lang%=engl";
my %hash = split /%;|%=/, $str, -2;
It works, but I would like to know if it's the right method