lddzjwwy has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks, now I got an unknown string $s1 and an other string $s2, and I want to check whether $s2 is contained in $s1 and if yes, all characters after this $s2 in $s1 must be returned. How can I realize this with substr()? Thanks a lot guys.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Substr
by LanX (Saint) on Jun 17, 2013 at 09:03 UTC | |
|
Re: Perl Substr
by marto (Cardinal) on Jun 17, 2013 at 09:20 UTC | |
|
Re: Perl Substr
by rovf (Priest) on Jun 17, 2013 at 09:00 UTC | |
|
Re: Perl Substr
by Anonymous Monk on Jun 17, 2013 at 09:00 UTC | |
|
Re: Perl Substr
by BillKSmith (Monsignor) on Jun 17, 2013 at 11:13 UTC | |
by AnomalousMonk (Archbishop) on Jun 17, 2013 at 12:56 UTC |