$a = qq|${system("echo 'hello from system'")}\n|; $a = "${system(\"echo 'hello from system'\")}\n"; #### $a = ; print "Some string with ${$a}";