mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
13 lines
155 B
Perl
13 lines
155 B
Perl
|
#!/usr/bin/perl
|
||
|
|
||
|
use warnings;
|
||
|
use strict;
|
||
|
|
||
|
open FH, "<fnord.txt" or die "Fnord?";
|
||
|
|
||
|
my @lines = <FH>;
|
||
|
|
||
|
close FH;
|
||
|
|
||
|
print "$lines[int rand($#lines + 1)]\n";
|