Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Port Forwarding with Net::SSH::Expectby jrsimmon (Hermit) |
on Dec 21, 2007 at 22:40 UTC ( [id://658560]=note: print w/replies, xml ) | Need Help?? |
Ok, so at first this post confused me, seems at first glance to be functionally equivalent...but then i realized the last thing I did before going to be last night was to "clean up" my code and put each session into its own subroutine. I pulled subs and created on long script like you have here, and it works like a charm. I don't quite understand why that would make a difference...maybe something with the scope of the various $ssh vars? Thanks much for the help! ++
In Section
Seekers of Perl Wisdom
|
|