in reply to Pattern Matching Hell.

If you don't mind giving up control of your values you can avoid regular expressions by using a simple test case.

if ($value eq "") { $value="whatever"; }