Parental Tech Support
Jul. 14th, 2015 10:37 am
My father, Wil Baden (one L), has lost much of his vision, so it's a lot harder to look stuff up in reference manuals the way he would have ten years ago. So he called me up with a couple of questions. The answers were:
command args... 2>&1 | tee file | more...
and
@buf = <FILE>;
(For those who didn't know, my life changed the day my father brought us into his work, and I asked the question "How can a computer play the game of Hangman?" And the questions he asked were about Unix Bash and Perl. How do you get STDERR to go the same place as STDOUT? How do you copy that output to a file and still do something with it to? And how do you read in an entire file at once and put it into an array, one line per element?)