Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.19 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. use warnings;
  3. use 5.014;
  4. use lib "/home/kaiyin/bin";
  5. use wrappers;
  6.  
  7. my $x = "what is this all about";
  8. while ($x =~ /(\w+)/g) {
  9.     say "Matched word: $1, end at position ", pos $x;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement