清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
#!/usr/bin/perl use strict; #use warnings; use feature 'say'; my @people = ("Foo", "Bar"); while (@people) { my $next_person = shift @people; print "$next_person\n"; # do something with this person print "Type in the names of more people:"; while (my $new = <STDIN>) { chomp $new; if ($new eq "") { last; } push @people, $new; } print "\n"; }