• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

IllustratorPackageのWindows版をPerlで作成中


Commit MetaInfo

Revision3769dccd6df825666871edeab997d7f8b8067284 (tree)
Time2012-10-10 17:36:22
Authormacneko_ayu <macneko.ayu@gmai...>
Commitermacneko_ayu

Log Message

1file modified. 1file maked.

Change Summary

Incremental Difference

--- a/subroutine/sub_main.pl
+++ b/subroutine/sub_main.pl
@@ -15,9 +15,10 @@ my $errcount = 0;
1515
1616 #ファイルを引数で受け取り繰り返し処理させるメインルーチン
1717 sub main {
18- foreach $file (@_) {
19- push(@linkfilepath, $file);
18+ foreach my $targetfile (@_) {
19+ push(@linkfilepath, $targetfile);
2020 }
21+ return @linkfilepath;
2122 }
2223
2324 main(@ARGV);
\ No newline at end of file
--- /dev/null
+++ b/subroutine/sub_openfile.pl
@@ -0,0 +1,12 @@
1+use strict;
2+use warnings;
3+use utf8;
4+
5+sub openfile {
6+ my $targetfile = $_[0];
7+ open my $fh, '<', $targetfile
8+ or die "Can't open $targetfile: $!";
9+ return $fh;
10+}
11+
12+openfile($ARGV[0]);
\ No newline at end of file