chinamox has asked for the wisdom of the Perl Monks concerning the following question:
#for each line while ($line = <EMPLOYEES>) { #remove the carriage return chomp $line; #splits the line between tabs and get the different elements ($name, $city, $language) = split /\t/, $line; next unless $language =~ /$search/; print "$name can speak " . ($search) . " and lives in " . ($city) . " +.\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ending a 'next unless' loop...
by jasonk (Parson) on Oct 04, 2006 at 00:34 UTC | |
|
Re: Ending a 'next unless' loop...
by blueberryCoffee (Scribe) on Oct 04, 2006 at 05:39 UTC | |
|
Re: Ending a 'next unless' loop...
by ikegami (Patriarch) on Oct 04, 2006 at 04:49 UTC | |
by grep (Monsignor) on Oct 04, 2006 at 05:18 UTC | |
by ikegami (Patriarch) on Oct 04, 2006 at 05:24 UTC |