123×456を計算(1-1)
1 / 1-1 / 2 / 2-1
初心者用 Perl講座の課題1-1をためしてみる。
#!/usr/bin/perl
print 123*456;
という内容のファイルを作成。kadai1-1.plという名前にして保存。
komadas-Computer:~ komada$ chmod +x kadai1-1.pl
komadas-Computer:~ komada$ ./kadai1-1.pl
56088komadas-Computer:~ komada$
56088と答えがでる。