This is Laziness in Larry Wall's "Three Virtues" sense. It's exactly the sort of labour-saving automation that belongs in a script/extension.