Split using two delimiters

I'm trying to do a split using two delimiters. The first delimiter is ": " (or we could call it :\s). The second is "\n".

How can or these delimiters so I can toss the values into an array without issue?

I tried @array = split /:\s|\n/, $myvar;

This doesn't seem to be working.

Any an all responses will be greatly appreciated.

Post your sample data and desired array contents. Maybe there is simpler way to achieve that.

Some Value : Some Value
Another Value : Another Value
Etc. : Etc.

Try:

$myvar=~s/ : /:/g;
@array=split /[:\n]/, $myvar;