Hello,
I am working on an assignment for my Perl class where my script goes out to a web site, extracts some information and is supposed to email the relevant information to an email address specified in the command-line argument. So far, I am able to extract the information from the web, parse through it with regular expression, and I know how to get the email to work. Here is what I need help with. I need to format the output that is sent in the body of the email. For example, each column can only be a certain width, all numbers must be the same size (filled in with 0's if needed). I am confused because it looks to me like the body of the email will be saved into a single scalar and then sent as an argument to the email function.
How can I construct this single scalar so that it is formatted correctly? Currently, I have pulled all of the data I need and saved it into arrays... one array for each of the six columns I need in the output.
Thank you very much for any help on this.
--
Nick