After taking a look at your last suggested script I have a short question:
At what point does this script read in information from the source file 'testing.txt'?
Is it during the 'while (<>)' statement? If so what would the syntax be?
Yes, you've got it.
while (<>) {
}
is a construct for writing Unix-like filter apps. It reads one line at a time, from all the files passed as args to the script or STDIN, if none are given. This is extremely handy.
For example, if you wanted to combine two text files for your mailing labels, you would just need to change how you call it:
perl script_name testing.txt other_file.txt
...or even...
perl script_name *.txt
...for all the .txt files in the current working directory.
Hope that helps.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>