Hi, I am very new to PERL (as you will be able to tell!!!), can you please explain my question below?
When I run this piece of code (below) I am looking for more than one word to be etered by the user and then the words that were entered are returned to the user in a right justified 20 character column. However only the first word I enter is returned when @words is used (where marked in bold) but the $_ variable works correctly. Can you please tell me what the difference is and how does it work? print "please neter a word\n"; chomp (@words = <STDIN>); foreach (@words){ printf "%20s\n", @words; #$_ } Thanks Brian ************************************************************************************************** The contents of this email and any attachments are confidential. It is intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to any one or make copies. ** eSafe scanned this email for viruses, vandals and malicious content ** ************************************************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]