in reply to Assigning variables via looping
$ perl -le'$_="abc"; print for "def"; print' def abc [download]