Guest User

Untitled

a guest
Jun 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/usr/bin/perl
  2. $_ = "the quick brown fox jumps over the lazy dog.";
  3. $mstr = "python";
  4. s/( ?)[a-z]+/\1${mstr}/g;
  5. $i = length($_);
  6. $_ = "the quick brown fox jumps over the lazy dog.";
  7. $mstr = "perl";
  8. s/( ?)[a-z]+/\1${mstr}/g;
  9. $i1 = length($_);
  10. unless ($i1 > $i) {
  11. print "Python is greater or equal to perl.\n";
  12. }
Add Comment
Please, Sign In to add comment