原帖由 rambo911 于 2009-7-7 20:13 发表 just press enter after you want to end input: use strict; use warnings; my $input = ; chomp $input; print $input;