summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SSEQ.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/SSEQ.pl b/SSEQ.pl
new file mode 100644
index 0000000..2f8feb8
--- /dev/null
+++ b/SSEQ.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use 5.016;
+
+chomp(my $string = <>);
+chomp(my $substr = <>);
+$substr = '(' . join(').*?(', split '', $substr) . ')';
+$string =~ $substr;
+say join(' ', map { $_ + 1 } @-[1..$#-]);