Use warnings. One single var_dump function. Additional observations. Add missing (not redundant! :O ) 'use'.