Guest User

Untitled

a guest
Dec 14th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.33 KB | None | 0 0
  1. #!/usr/bin/env perl
  2.  
  3. use warnings;
  4. use strict;
  5.  
  6. my $last_line = "";
  7. while (<>) {
  8.   if (/Successfully registered/) {
  9.     print $last_line;
  10.     print;
  11.     for (1..5) {
  12.       $_ = <>; print;
  13.     }
  14.   } elsif (/Attempting to register/) {
  15.     print $last_line;
  16.     print;
  17.     for (1..2) {
  18.       $_ = <>; print;
  19.     }
  20.   }
  21. }
Add Comment
Please, Sign In to add comment