#!/usr/bin/perl use strict; use warnings; while (split(/[, ]+/, )) { chomp; print "'$_'\n"; } __DATA__ me@here.com those@there.com others@there.com you@there.com,them@there.com #### Use of uninitialized value $_ in scalar chomp at ./pm11137286.pl line 8, line 1. Use of uninitialized value $_ in concatenation (.) or string at ./pm11137286.pl line 9, line 1. '' Use of uninitialized value $_ in scalar chomp at ./pm11137286.pl line 8, line 2. Use of uninitialized value $_ in concatenation (.) or string at ./pm11137286.pl line 9, line 2. '' Use of uninitialized value $_ in scalar chomp at ./pm11137286.pl line 8, line 3. Use of uninitialized value $_ in concatenation (.) or string at ./pm11137286.pl line 9, line 3. '' Use of uninitialized value in split at ./pm11137286.pl line 9, line 3. #### #!/usr/bin/perl use strict; use warnings; for (map { split /[, ]+/ } ) { chomp; print "'$_'\n"; } __DATA__ me@here.com those@there.com others@there.com you@there.com,them@there.com