When Johnny Comes Marching Home

: : I've seen it all over the place, but the only reference that comes to mind was on a Simpsons where Troy McClure does his riff: "You may remember me from such films as 'Andre the Giant: We Hardly Knew Ye'...".

: : Of course this same phrase pops up frequently in jest, but can anyone find where this first became popularized? Or at the very least a reference pre-dating Simpsons?

Thanks, R.Berg, for this useful link, which also includes "When Johnny Comes Marching Home", a song from the American Civil War. At some time perhaps 10 years ago I heard a wonderful version of this latter song being sung first in a sprightly, enthusiastic, patriotic manner, and then ironically, as a mournful dirge. It must have been some movie that I saw, with it used in the soundtrack; but I've never been able to locate the source again. Does this ring a bell with anyone?