On 30 July 2010 19:24, Kenneth Gonsalves <[email protected]> wrote: > On Friday, July 30, 2010 07:12:47 pm Girish Venkatachalam wrote: >> $ cat randtype.pl >> use Time::HiRes qw(usleep); >> >> $| = 1; >> >> open F, '/etc/passwd'; >> >> @lines = <F>; >> >> for(@lines) { >> @chars = split //; >> for(@chars) { >> print; >> usleep(20000); >> } >> } > > chinese posting with or without tag is a no no in this list ;-) Could we have > an english translation so that we can find out what this thing does and > attempt > to replicate it?
$| tells perl to flush STDOUT immediately. The program prints characters read from /etc/password at random intervals. This simulates the typing effect on a screen. -balaji -- http://balajin.net/blog http://flic.kr/balajijegan _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
