#!/usr/bin/perl use strict; use warnings; for my $f (qw(a b)){ print $f; warn "."; } #### . at test.pl line 7. . at test.pl line 7. ab #### #!/usr/bin/perl use strict; use warnings; for my $f (qw(a b)){ print $f; warn ; } #### Warning: something's wrong at test.pl line 7. Warning: something's wrong at test.pl line 7. a1 #### $ perl -v This is perl, v5.8.8 built for i486-linux-gnu-thread-multi