Actually, the real reason why people tell you not to eat late at night is because when you sleep your body and its functions slow down.
If you've eaten a full meal before you go to bed the stomach cannot properly digest what you've eaten and may actually result in a restless night sleep-wise.
This escalated into not eating at night for fear of not processing foods properly, thinking that spare carbohydrate then gets turned into fat and hey presto, love handles!
As spaced says try and eat easily digestable foods, not ones that'll have your stomach gurgling!
4getmenot is referring to a study and results found out a couple of years ago;
http://news.bbc.co.uk/2/hi/health/3263249.stm
Good luck anyway, the benefits at the gym far outweight the worries of eating late!!