$adfile = 'banners.dat'; open(FILE, $adfile) || die "Can't open $adfile"; $file = ; close(FILE); @stuff = split(/;/,$file); srand(time ^ $$); $choice = rand(@stuff); $chosen = @stuff[$choice]; @part = split(/\|/,$chosen); print "Content-type: text/html\n\n"; print "\"@part[4]\"
Please visit my sponosr!
\n";