rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I've got the following little test, but i cant seem to get it to print a backspace in the textarea field.
Does anyone know if this is possible?
Cheers,
Reagen
I've got the following little test, but i cant seem to get it to print a backspace in the textarea field.
Does anyone know if this is possible?
Also, on a side note, could someone tell me how to combine these two lines into one :) ;#!/usr/bin/perl $| = 1; use strict; use warnings; print "Content-type: text/html\n\n"; print "Starting Test<br>\n"; print "<textarea rows=1 style=\"border:1px #FFFFFF solid; overflow:hid +den;\">"; my $count = 0; for (my $i = 1; $i <= 16; $i++) { print "."; $count++; print "\b\b\b\b" if ($count == 4); $count = 0 if ($count == 4); sleep(1); } # end-for print "</textarea><br>"; print "Completed Test!\n"; exit(0);
I guess i could do:print "\b\b\b\b" if ($count == 4); $count = 0 if ($count == 4);
but it seems somewhat inelegant.if ($count == 4) { $count = 0; print "\b\b\b\b"; }
Cheers,
Reagen
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: print a backspace in nph-"HTML"?
by BUU (Prior) on Dec 04, 2004 at 11:36 UTC | |
Re: print a backspace in nph-"HTML"?
by VSarkiss (Monsignor) on Dec 04, 2004 at 15:14 UTC | |
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 | |
Re: print a backspace in nph-"HTML"?
by Zed_Lopez (Chaplain) on Dec 04, 2004 at 20:31 UTC |
Back to
Seekers of Perl Wisdom