Learning Perl Chap.1 Introduction

まとめ

  • Practical Extraction and Report Language (a.k.a Perl)
  • Perlは90%がテキスト処理、のこりの10%がその他全ての問題に対処するように作られている
  • Perlの長所: 実装時間を短縮できる
  • Perlの短所: スクリプト言語故にソースコードは常に丸裸

Exercise
実行環境整ってないので後日追加

1

#!/usr/bin/perl
use strict;
use warnings;

print "Hello World!\n";

2

$ perldoc -u -f atan
=over 8

=item atan2 Y,X
X<atan2> X<arctangent> X<tan> X<tangent>

Returns the arctangent of Y/X in the range -PI to PI.

For the tangent operation, you may use the C<Math::Trig::tan>
function, or use the familiar relation:

    sub tan { sin($_[0]) / cos($_[0])  }

The return value for C<atan2(0,0)> is implementation-defined; consult
your atan2(3) manpage for more information.

=back
  • uはフォーマットしない(unformat) -fは標準関数を指定。
>

=over 8

=item atan2 Y,X
ATAN2 ARCTANGENT TAN TANGENT

Returns the arctangent of Y/X in the range -PI to PI.

For the tangent operation, you may use the MATH::TRIG::TAN
function, or use the familiar relation:

sub tan { sin($_[0]) / cos($_[0]) }

The return value for ATAN2(0,0) is implementation-defined; consult
your atan2(3) manpage for more information.

=back
|