update: but i still think it should work because if i type in a multiline perl
command and type arrow-up immediately after that i get all my lines like
i typed them in. just storing in the history doesn't seem to work.