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:
In reply to Re: Break foreach and print at specific position?
by toolic
in thread Break foreach and print at specific position?
by perlmonks12
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |