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

Re: cleaning up code with "do" ?

by schweini (Friar)
on Aug 18, 2004 at 22:47 UTC ( #384141=note: print w/replies, xml ) Need Help??


in reply to cleaning up code with "do" ?

Ok.
replacing "do" or "eval `cat file.pl`" with "require" things got a lot better.
but, for future reference: i think(!) the main problem is/was Tk's waitVariable. if i create the widget in one file, and watch a waitvariable with code from another file, i get to wait forever, it seems. the "waiter"-code simply doesnt get it.
i'll try to create a simple test-case, and ask the Tk-guys about that....

Replies are listed 'Best First'.
Re^2: cleaning up code with "do" ?
by ysth (Canon) on Aug 18, 2004 at 23:31 UTC
    I hope you mean BEGIN {require ...}. Can you show a short but complete example that fails?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2020-03-29 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (171 votes). Check out past polls.

    Notices?