『初めてのPerl』練習問題1-3を再びためしてみたけれど、うまく行かなかった。

optionキーを押しながら、¥キーを押して半角\をタイプする方法

#!/usr/bin/perl
@lines=`perldoc -u -f atan2`;

foreach (@lines) {
s/\w<([^>]+)>/\U$1/g;
print;
}

この内容をex1-3.plにする。

komadas-Computer:~ komada$ chmod +x ex1-3.pl
komadas-Computer:~ komada$ ./ex1-3.pl
No documentation found for "perlfunc".
komadas-Computer:~ komada$