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