Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Telnet session disconnect testing

by arkturuz (Curate)
on Jan 13, 2010 at 20:02 UTC ( #817269=note: print w/replies, xml ) Need Help??


in reply to Re^2: Telnet session disconnect testing
in thread Telnet session disconnect testing

Not quite sure I understand your comment regarding the subroutines

Usually, you define your functions once, and rarely put them inside the loops (unless there's some tricky busines going on - like constantly defining new subroutines for some specific tasks). Nevertheless, if it's okay with you, and the program works as expected, then there's no problem. Although it's better for readabilly, maintenance, logic of the program, easier debugging, to do otherwise.

  • Comment on Re^3: Telnet session disconnect testing

Replies are listed 'Best First'.
Re^4: Telnet session disconnect testing
by bajangerry (Acolyte) on Jan 15, 2010 at 17:21 UTC

    Ok I see what you mean now, the for loop needs to be closed after the while loop closes.

    Made the change and everything works as before... not sure if this will resolved the problem with the link drop/reconnect issue though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://817269]
help
Chatterbox?
[oakbox]: Anyone else having difficulty looking at search.cpan.org?
[oakbox]: I keep getting a proxy error.
[marto]: try http://metacpan. org/
[marto]: I can't access search.cpan right now either. I prefer the metacpan search and general formatting anyway. Also it seems faster
[oakbox]: Yeah, the front page of cpan.org uses metacpan.org now for search results
[oakbox]: but there are a billion links 'out there' linking to search.cpan.org.
[marto]: yep :)
[Discipulus]: being her marto, can you explain what "Par for the course I'm afraid." means?
Discipulus here..
[marto]: "what is normal or expected in any given circumstances."

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-07-26 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (388 votes). Check out past polls.