in reply to using Open

$tmp contains "your text\n". Use chomp to remove the trailing newline.