in reply to Problem passing a string in system function

my $receipt_email = 'myemail@gmail.com"

Mismatched quote types.

You also didn't share what shell you're using. Single vs double-quotes (and other characters) have big differences on CMD.EXE vs bash vs other command line shells.

--
[ e d @ h a l l e y . c c ]