in reply to Running a Perl script stored in a variable
Try using quote operators such as here-docs or q{} in order to avoid some debugging time when one of your strings fail... See perlop.
Regards,
Julio