in reply to Re^2: Using <> in the presence of @ARGVin thread Using <> in the presence of @ARGV
my @file = <$fh>; print $file[int rand $#file]; [download]