Think about Loose Coupling | |
PerlMonks |
Re: How do I pull n characters off the front of a string?by xtrem (Novice) |
on Apr 24, 2001 at 20:29 UTC ( [id://75128]=note: print w/replies, xml ) | Need Help?? |
This will put the 1st n char into $x and the 2nd n chars into $y without touching $string... if you want the rest of the chars: if you don't like regexp's you can allways try substr
In Section
Seekers of Perl Wisdom
|
|