#!/usr/bin/perl -w $username = "01402629"; open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); @stock = ; @matches = (grep(/$username/, @stock)); print @matches;