Char-Latin10
view release on metacpan or search on metacpan
lib/Elatin10.pm view on Meta::CPAN
$header =~ s/\n\s+/ /g; # Merge continuation lines.
%head = ("FRONTSTUFF", Elatin10::split(/^(\S*?):\s*/m, $header));
The following example processes the entries in a Unix passwd(5) file. You could
leave out the chomp, in which case $shell would have a newline on the end of it.
open(PASSWD, "/etc/passwd");
while (<PASSWD>) {
chomp; # remove trailing newline.
($login, $passwd, $uid, $gid, $gcos, $home, $shell) =
Elatin10::split(/:/);
...
}
Here's how process each word of each line of each file of input to create a
word-frequency hash.
while (<>) {
for my $word (Elatin10::split()) {
$count{$word}++;
( run in 1.917 second using v1.01-cache-2.11-cpan-5735350b133 )