Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^9: Perl tk - open file and print content

by Anonymous Monk
on Jan 23, 2012 at 12:48 UTC ( #949396=note: print w/ replies, xml ) Need Help??


in reply to Re^8: Perl tk - open file and print content
in thread Perl tk - open file and print content

stop using print function

run  perl -MTk -e " my $te = tkinit->Scrolled( q/TextUndo/ )->pack; $te->Load( q/filename/ ); MainLoop "  

substitute  q/filename/ with a real filename, and when you paste the contents of the program into your real program, use $open like you have in your program, and thats it

Run the widget demo, it also shows zentara way of using Tk::Text insert method

Oh, there is no need , but you could use open/print if you really want,but, it helps to know perl Perl:TK - standard output to text widget


Comment on Re^9: Perl tk - open file and print content
Select or Download Code
Re^10: Perl tk - open file and print content
by Giorgio C (Novice) on Jan 23, 2012 at 14:44 UTC
    Heartfelt thanks finally it works now!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-07-24 00:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (155 votes), past polls