|
|
| go ahead... be a heretic | |
| PerlMonks |
Answer: Coding CTRL-D |
| ( #21180=categorized answer: print w/ replies, xml ) | Need Help?? |
|
Q&A > programs and processes > Coding CTRL-D 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.
|
|
||||||||||||||||||