in reply to print a backspace in nph-"HTML"?
I don't know enough about textareas to answer your main question, but the canonical way to do the $count thing is with modulo arithmetic:
Or you may want to use == 1 or == 3, depending on what effect you want to achieve. You can read about %, the modulus operator, in perlop.print "\b\b\b\b" if ++$count % 4 == 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: print a backspace in nph-"HTML"?
by Zed_Lopez (Chaplain) on Dec 04, 2004 at 16:50 UTC | |
by VSarkiss (Monsignor) on Dec 04, 2004 at 17:03 UTC | |
by Zed_Lopez (Chaplain) on Dec 04, 2004 at 19:42 UTC |