#!/usr/bin/perl -w print "Location: http://test/ \n\n"; if(condition){ exec '/usr/.../another.pl'; }