Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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 $@; } }

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017076]
[Discipulus]: well i'm still at the end of the food chain..
[Discipulus]: so a new life as krill in prague will be good
[erix]: wtf -- what's the idea, is this trolling, advertising, or what?
[Discipulus]: but realisticly choroba your company would a hire a programmer as me?
Discipulus spent ~3 hours on the roof.. with mediocre results..
[Eily]: what were you trying to do on the roof Discipulus?
[Eily]: if I had done the same here, I'd contain a swimming-pool worth of water by now...
[Discipulus]: i put some shodowing cloth against the killer sun. but i'm still not happy with this

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2017-06-29 12:54 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (663 votes). Check out past polls.