# export X=`perl -we 'print "foobar"'` # echo $X foobar