#!/usr/bin/perl
@lines = `perldoc -u -f atan2`;
foreach (@lines) {
s/\w<([^>]+)>/\U$1/g;
print;
}
Now, the first time you see Perl code like this, it can seem pretty
strange. (In fact, every time you see Perl code like this, it can
seem pretty strange.) But let's take it line by line, and see
what this example does. (These explanations are very brief; this is a
whirlwind tour, after all. We'll see all of this
program's features in more detail during the rest of this book.
You're not really supposed to understand the whole thing until
later.)