use warnings; use strict; my $str = do {local $/ = ''; ;}; print join "^", split /(?