From the category archives:

Perl

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`;

{ 10 comments }

Easiest way to do this is call php/perl script as javascript. Since javascript is client side stuff, php or perl script need to writeback output using javascript commands only. This is useful if you have lots of HTML files and would like to do some server side processing. For example Tips & Tricks section on [...]

{ 26 comments }

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 [...]

{ 2 comments }