does the $|=1; mean ignore buffered output?
My goal is not to tell the program to sleep so perldoc -f sleep has 
nothing to do with my goal.  My goal is to disallow users from entering 
keystrokes SIGNALs that can break then out of the program.

thanks again!

Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams






"John W. Krahn" <[EMAIL PROTECTED]>
03/16/2004 10:28 PM

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        Re: traps in perl


Jayakumar Rajagopal wrote:
>
> From: John W. Krahn [mailto:[EMAIL PROTECTED]
>
> Jayakumar Rajagopal wrote:
> > $|=1;
> >
> > $SIG{INT} = sub { print "tamizh vaazhga\n": };
> >
> > $SIG{USR1} = sub { print " vennai\n"; };
> >
> > $SIG{TSTP} = sub { print "poda maanga\n"; };
> >
> > while(1)
> >
> > {
> >
> > print "...";
> >
> > `sleep 1`;
>
> Why are you running an external program to do something that perl
> provides a function for?
>
> perldoc -f sleep
>
> > }
> >
> > __END__;
> 
> Sorry for using shell. I am good in shell,

No need to apologize.  :-)

> but do not know most  of
> perl. ( O Reilly says you can code perl very well if you know just
> 10% of it)

Yes, Perl is good that way.

> I am a poor person without perldoc.

If you have Perl installed on your computer then you should have the
documentation installed as well.  If not and if you have web access you
can use http://perldoc.com/

> Also I am new to perl.
> ;-(... Anyway I would try better.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to