in reply to Re^4: Remote Session Starting
in thread Remote Session Starting

I did try the WIn32::GUITest in place of the sleep but the session went away.

Based on what you have said about keeping the session in scope is more than likely the probelm but I am not sure how to do this, a failing on my part to really understanding variable scoping.

Replies are listed 'Best First'.
Re^6: Remote Session Starting
by Joost (Canon) on Mar 01, 2008 at 23:53 UTC
    The very short (and incomplete) explanation is this:
    some_block_creating_statement_like_if_or_sub { my $session = ....; # do stuff with $session some_other_block { # $session is available here } # end of block } # $session will be out of scope here. # so it won't be available and if it's not passed to # some other variable that is available here it will # be gone, and the telnet session will be closed.
    See also perlfaq7's "What’s the difference between dynamic and lexical (static) scoping?"