#!/usr/bin/perlsubget_random_line{my($file)=@_;my$line;# inscrutable random line algorithm -- from the camel book# $. is the number of the last line accessedopenFORTUNES,"$BUCKY_FORTUNES/$file"orerror("Could not access fortune $file");srand;rand($.)<1&&($line=$_)while<FORTUNES>;closeFORTUNES;chomp$line;return$line;}1;