Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Answer: Coding CTRL-D

by Anonymous Monk
on Jul 05, 2000 at 22:19 UTC ( #21180=categorized answer: print w/replies, xml ) Need Help??

Q&A > programs and processes > Coding CTRL-D - Answer contributed by Anonymous Monk

try this: #!/usr/bin/perl #other stuff print pack("c", 04"); # c is for signed character value, and 04 is control-d, aka, EndOfTransmission.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the shadows deepen...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-11-24 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (343 votes). Check out past polls.

    Notices?