Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Controlling already printed text to console.

by Marshall (Abbot)
on Aug 02, 2012 at 07:23 UTC ( #984959=note: print w/replies, xml ) Need Help??


in reply to Controlling already printed text to console.

How do I change some char.s of the already printed text string? I.e.having printed

This is really hard for me to understand.
Once you "print" something - it is gone, passed to some other level of software.

Adding something before your print is fine.

my $hello ="Hello, World\n"; print "[]$hello";
I am not sure exactly what you are trying to do.
Maybe this is GUI? I don't know.

If you are talking about a command line window, there are various ways to do this - maybe just move the cursor back to the line to be modified, delete that line and then "re-print" that line. This will happen so fast that the user will not see it.

Replies are listed 'Best First'.
Re^2: Controlling already printed text to console.
by humble (Acolyte) on Aug 03, 2012 at 19:05 UTC
    Thank You, Marshall.

    Yes I wanted to reprint the string that have been printed.

    Please look at the example given by frozenwithjoy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984959]
help
Chatterbox?
[Lady_Aleena]: paco is a little over 2 years before my time.
[Discipulus]: you can try tachyon's iterative approach Re: Win32 Recursive Directory Listing
[Lady_Aleena]: I'm on Linux/
[beech]: isn't 2 year about standard recovery time for that kind of surgery?
[Discipulus]: if you hate FIle::Find
[Lady_Aleena]: I don't hate it, it just drives me crazy.
[Discipulus]: LA the solution is portable to whatever
[Lady_Aleena]: File::Find doesn't have a simple sub wanted example, like get the name of the file.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2017-04-23 20:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.