<?xml version="1.0" encoding="utf-8"?>
<!-- generator="open[qoob]" -->
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>the website of xero harrison</title>
    <subtitle type="text">xero, xero harrison, harrison, nu, x-e.ro, whois.x-e.ro, blog.x-e.ro, code.x-e.ro, lab.x-e.ro, img.x-e.ro, etc.x-e.ro, feeds.x-e.ro, fontvir.us, fontvirus, font, fonts, git, portfolio, program, programming, code, coding, codes, codez, dev, develop, developer, qoob, open qoob, openqoob, framework, code, api, lab, laboratory, experiment, experiments, demo, netart, net art, unixporn, unix porn, unixp0rn, unixpr0n, images, photos, etc, random</subtitle>
    <link>https://blog.x-e.ro</link>
    <updated>Sat, 30 May 2026 14:14:01 -0400</updated>
    <id>https://blog.x-e.ro</id>
    <link rel="self" href="https://feeds.x-e.ro" />
    <generator uri="http://qoob.xero.nu/">open[qoob]</generator>
    <entry>
        <title>random page perl script</title>
        <id>https://blog.x-e.ro/random_page_perl_script</id>
        <link rel="alternate">https://blog.x-e.ro/random_page_perl_script</link>
        <summary type="html">&lt;p&gt;place this code in a file called index.cgi, chmod it to 775, and place it in a directory of html files. this script will pick one of the files in the specified directory at random, and print it to the screen. refresh the page for a new random one.&lt;/p&gt;
&lt;pre class=&quot;brush: perl&quot;&gt;#!/usr/bin/perl
print &quot;Content-type: text/html\n\n&quot;;
 
#print &quot;&lt;pre&gt;&quot;;
$basep = &quot;/wwwroot/path2/randomdir&quot;;
 
srand(time ^ $$);
#print &quot;got random time...\n&quot;;
 
@files = `ls $basep/*.html`;
#print &quot;got file list...\n&quot;;
#foreach (@files) { print &quot;-----$_\n&quot;;}
 
$file = rand(@files);
#print &quot;got random file...$phrase\n&quot;;
 
$nupath = &quot;$files[$file]&quot;;
#print &quot;got new path...$nupath\n&quot;;
 
open(LOG, $nupath) or die &quot;$!\n&quot;; 
while () 
{
  print $_;
}
close (LOG);
#print &quot;&lt;/pre&gt;&quot;;

exit;&lt;/pre&gt;</summary>
        <author>
            <name>xero harrison</name>
        </author>
        <updated>2003-11-18T16:27:00-05:00</updated>
    </entry>
</feed>
