[Omaha.pm] Another 30s script

Jay Hannah jay at jays.net
Thu Nov 17 12:33:10 PST 2005


Task: Find any lines in a pipe-delimited file where the 3rd column 
contains a non-alphanumeric character.

j


#!/usr/bin/perl

open (IN, "j.unl");
while (<IN>) {
    chomp;
    @l = split /\|/;
    print if ($l[2] =~ /[^a-z0-9]/i);
}




More information about the Omaha-pm mailing list