in reply to Break foreach and print at specific position?
How to break the foreach() loop? There is a instruction to do it?last
See also Loop Control
The second question is how to tell to print to a specific position? For example, I always want to write starting at position 30.
Update: due to subsequent clarification of the question, this does not solve the problem:
If you only want to print a portion of a string, use
substr:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Break foreach and print at specific position?
by perlmonks12 (Novice) on May 10, 2010 at 23:25 UTC | |
by pemungkah (Priest) on May 10, 2010 at 23:35 UTC | |
by perlmonks12 (Novice) on May 10, 2010 at 23:53 UTC | |
by ikegami (Patriarch) on May 10, 2010 at 23:55 UTC | |
by perlmonks12 (Novice) on May 11, 2010 at 01:02 UTC | |
by aquarium (Curate) on May 11, 2010 at 01:05 UTC |