Joe Mecklin wrote:
> 
> I'm trying to send a file as a remote configuration download via telnet
> in a Perl script (using net::telnet).  I need to introduce sub-second
> delays between sending each line so the receiving system doesn't get
> confused.  Sleep only goes down to a single second; is there something
> that can inject sub-second delays (module, command, arg to net::telnet,
> whatever)?


The select function can be used for this.

perldoc -f select
[snip]
               You can effect a sleep of 250 milliseconds this
               way:

                   select(undef, undef, undef, 0.25);



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to