您的位置:首页 > 其它

subroutines of perl

2015-12-06 21:33 204 查看
#!/usr/bin/perl -w

@students = qw/Doreen Oskar Elin Sangeet Malin/;

&next_student;

&next_student;

sub next_student {
$i++;
print "the next student is $students[$i]\n";
}

the next student is Oskar
the next student is Elin
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: