print 1+2;をためしてみる。(1)
1 /1-1 / 2 / 2-1
初心者用 Perl講座の1. 文字列の表示の項目のなかで、printの行を
print 1+2;に変えてやってみる。
#!/usr/bin/perl
print 1+2;
という内容のファイルを作成。hello.plという名前にする。
komadas-Computer:~ komada$ chmod +x hello.pl
komadas-Computer:~ komada$ ./hello.pl
3komadas-Computer:~ komada$
計算されて、3という答えがでてきた。