2006-07-19から1日間の記事一覧
練習問題1:数値のリストを受け取って、その合計を返すサブルー チンの作成。 #! /usr/bin/perl -wuse strict;my @fred = qw{ 1 3 5 7 9 }; my($fred_total) = &total(@fred);print "The total of \@fred is $fred_total. \n"; print "Enter some numbers o…
練習問題1:数値のリストを受け取って、その合計を返すサブルー チンの作成。 #! /usr/bin/perl -wuse strict;my @fred = qw{ 1 3 5 7 9 }; my($fred_total) = &total(@fred);print "The total of \@fred is $fred_total. \n"; print "Enter some numbers o…