home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet 1996 World Exposition
/
park.org.s3.amazonaws.com.7z
/
park.org.s3.amazonaws.com
/
cgi-bin
/
Japan
/
Theme
/
rand_select_sjapan.cgi
< prev
next >
Wrap
Text File
|
2017-09-21
|
386b
|
23 lines
#!/usr/local/bin/perl
#
# rand_select_sjapan.cgi
# randam selection of sjapan icon for sensorium top page
#
@file = ('sj1.gif','sj2.gif','sj3.gif','sj4.gif','sj5.gif');
{
local(@temp);
srand;
push(@temp, splice(@file, rand(@file), 1))
while @file;
@file = @temp;
}
print "Content-type: image/gif\n\n";
open(F, "top_sjapan_icons/@file[0]");
while (<F>) {
print $_;
}
close(F);