#!/usr/bin/perl -w open FILE, "abc.txt" or die $!; while () { script should go here }

close (FILE);