use strict; use warnings; my %data; while (<DATA>) { chomp; next unless $_; $data{$_}++; } for ( keys %data ) { print "$data{$_} : $_\n"; }
In reply to Re: create a perl script for pattern matching
by holli
in thread create a perl script for pattern matching
by MelaOS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |