プログラム実行まで
![初めてのPerl 初めてのPerl](http://ecx.images-amazon.com/images/I/51C59GNSC3L._SL160_.jpg)
- 作者: ランダル・L.シュワルツ,トムフェニックス,Randal L. Schwartz,Tom Phoenix,近藤嘉雪
- 出版社/メーカー: オライリージャパン
- 発売日: 2003/05
- メディア: 単行本
- 購入: 15人 クリック: 474回
- この商品を含むブログ (294件) を見る
はじめに
初めてのPerlを読んでいます。今5章の途中なのですが忘れないうちに今までの内容を自分が気になったとこだけメモっとこうかなと。早く覚えて私の一番の道具と言えるようにしたいです。
Perlはあるのかい?
$ perl -v This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) Copyright 1987-2010, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
無い訳がないよね、さすがPerl
とりあえずhelloしておく
hello.pl
#!/usr/bin/perl print "hello\n";
$ perl hello.pl hello
やったぜ!!
実行可能ファイルにする
$ chmod a+x hello.pl $ ./hello.pl hello
うん...まぁ勉強で書く分にはやらなくていいよね
最後に
とりあえず勉強したところは速攻でまとめます。