Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: how to use angle operator with timeout?

by Khen1950fx (Canon)
on Feb 05, 2013 at 07:23 UTC ( #1017076=note: print w/ replies, xml ) Need Help??


in reply to how to use angle operator with timeout?

I couldn't get alarm to work for me in a consistent manner, so I tried Tie::Scalar::Timeout.

#!/usr/bin/perl -l use strict; use warnings; use Tie::Scalar::Timeout; tie my $line, 'Tie::Scalar::Timeout', EXPIRES => '+1s', POLICY => undef; $line = system("whoami"); while (defined($_ = $line)) { foreach $line(my @lines) { print "$_" or die $@; } }


Comment on Re: how to use angle operator with timeout?
Download Code
Replies are listed 'Best First'.
Re^2: how to use angle operator with timeout?
by Anonymous Monk on Feb 05, 2013 at 07:50 UTC

    couldn't get alarm ....

    What has that nonsense got to do with readline, ie the OPs question?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2015-07-30 21:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls