A note on perfect scalar fields