good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Is it possible to get all tetra words with correct starting position using a better code within a loop?by choroba (Cardinal) |
on Nov 22, 2012 at 08:51 UTC ( [id://1005080]=note: print w/replies, xml ) | Need Help?? |
Use substr:
Note that Perl uses 0 for the starting position, not 1. If you really need 1, just output $start + 1.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|