Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

13 linhas
287 B

  1. #!/usr/bin/env perl
  2. #
  3. # Timestamp stdin and then print to stdout and flush.
  4. #
  5. # Thats about it. Might add a quick and dirty option to allow you to
  6. # specify the time output whatnot. But this is intended to be simple.
  7. #
  8. while(<STDIN>){
  9. print localtime()." : ".$_;
  10. $stdout.flush;
  11. };