http://www.perlmonks.org?node_id=981382


in reply to regex needed

my ($before, $after) = split /\$\$/, $line, 2;