You need to quote the strings on the second line of STDOUT_TOP, as if they were perl code ,so like
format STDOUT_TOP =
@<<<<<<<<<<<<<<< @|||||||||| @||||| @|||||
"User", "Command", "CPU%", "Mem%"
.
Might be easier to switch to Perl6::Form, then you only deal with regular function syntax |