title: Schedule::Cron never returns to main script
body: <p>I am trying to run a Perl script (test.pl) once every minute without using <code>crontab</code>.  Since I will not have access to write cron jobs into <code>/etc/cron.d/</code>, I am using the Perl module <code>Schedule::Cron</code>.</p>
  
  <p>I have included the code for test.pl in a script that is running continuously and  given code like:</p>
  
  <pre><code>my $cron = new Schedule::Cron(sub {}); 
  $cron-&gt;add_entry("* * * * *",\&amp;test_function); 
  $cron-&gt;run(nofork=&gt;1)
  </code></pre>
  
  <p>The issue is that the line</p>
  
  <pre><code>$cron-&gt;run(nofork=&gt;1)
  </code></pre>
  
  <p>never returns back to the main script, and it is not executing any code that are given after that.</p>
  
  <p>I need a solution for this to run cron in the background (using <code>Schedule::Cron</code>) and then return back to the main script for executing the remaining script.</p>