in reply to Reaped: Re^2: why am i getting script error 500
in thread why am i getting script error 500

use strict is warning you that step is a bareword; try using quotes: my $step = param('step');

BTW, use strict is your friend, don't get rid of it!