brady jacksan wrote: > HI all, > > I am doing an assignment. I am writing a script to access a file and > print the first and last name of workers whose hours worked exceeded > 300hours. In the file, the last name is the first field and the first name > is the second field. Both fields are separated by the "|" operator. > > #!/usr/bin/perl > > # use warnings; > > #use strict; > unless ($worker_hour =~ i < 300) { > print "@payroll [1][0]; > } > > Am I printing the output the right way or is there another way? > > Thanks > > a copy of the file is attached.
Hi Brady, How does the program know what data you want it to process, or how? I see two references to apparent variables, but have no idea how the variables get their value. Is there code missing between the "use strict" and the next line? Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]