Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (strings)
If I have a string that I am parsing to put into a database and the same n characters are being pulled off a string, I want to pull those chars from the string and leave the rest of the string. I want the first n chars put into $x, then removed from the string. Then the first n chars in the new string put into $y.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I pull n characters off the front of a string?⭐
by arturo (Vicar) on Apr 24, 2001 at 20:59 UTC | |
Re: How do I pull n characters off the front of a string?⭐
by davido (Cardinal) on Oct 03, 2003 at 01:31 UTC | |
by Aristotle (Chancellor) on Oct 03, 2003 at 22:31 UTC | |
Re: How do I pull n characters off the front of a string?⭐
by perlmonkey (Hermit) on May 02, 2001 at 11:48 UTC | |
Re: How do I pull n characters off the front of a string?
by xtrem (Novice) on Apr 24, 2001 at 20:29 UTC | |
Re: How do I pull n characters off the front of a string?
by cbraga (Pilgrim) on May 01, 2001 at 22:47 UTC | |
Re: How do I pull n characters off the front of a string?
by Masem (Monsignor) on Apr 24, 2001 at 20:26 UTC |
Back to
Seekers of Perl Wisdom