Guest User

Untitled

a guest
Jul 15th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.24 KB | None | 0 0
  1. #!/usr/bin/perl
  2. while (<>)
  3. {
  4.    @in = split(/\n/,$_);
  5.    foreach $line(@in)
  6.    {
  7.       if ( $line =~ m/^(.{4})(.*)$/ )
  8.       {
  9.         $p1=$1; $p2=$2; #save matches
  10.         $p2 =~ s/./*/g;
  11.         print "final=$p1$p2\n";
  12.       }
  13.    }
  14. }
Add Comment
Please, Sign In to add comment