xenocara/app/xlockmore/etc/xlockranddur.pl

6 lines
131 B
Perl

#!/usr/bin/perl -w
# xarand
open(S,"/usr/games/fortune|wc|");
local(@numbers) = split(" ",<S>);
print int $numbers[2]/3;
close(S);