View Single Post
Old 04-09-2005, 08:10 AM   #7 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Code:
while(<>) {
   chomp;
   s/\r//g;
   my ($name, $wage, $hours) = split(/\,/);
   print "NAME=$name\tWAGE=$wage\tHOURS=$hours\n";
}
So just run like:
Code:
./script_name input_file
So once you have the data in a variable you can do whatever you need. The logic for looking at the wage > 1000 should be pretty straight forward.

-r
idx is offline   Reply With Quote