If you would like to make a call to, or reference, a Perl script from within a different Perl script, you can accomplish this a system(), exec() or the backtick operator to the path for Perl. For example:
system(“/usr/bin/perl /path/to/my_script.pl “);
Or store output to array:
@myarray = `/usr/bin/perl mysecondperlscript.pl`;
It is common scenario when you need to tell the browser to redirect or look elsewhere for a page because you don’t want to produce a document yourself.
For example http://mydomain.com/rd.pl?url=http://blogs.mydomain.com should redirect to a page/url http://blogs.mydomain.com
Here is perl code to redirect web page to http://blogs.cyberciti.biz/hm/:
#!/usr/bin/perl
use strict;
use warnings;
my $url = “http://blogs.cyberciti.biz/hm/”;
print “Location: $url\n\n”;
However this code misses [...]