diff options
Diffstat (limited to 'SSEQ.pl')
-rw-r--r-- | SSEQ.pl | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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..$#-]); |