Hi Perl Gang,

While doing one of the very basic exercises out of the beginning of Learning 
Perl I'm stuck:
#!/usr/bin/perl -w
use strict;
my @words;
print "Enter a list of words, one on each line (CTRL-D when complete): \n";
@words = <STDIN>;

I'm intentionally not chomping the words. 
I expect @words to look like: qw# aaa\n bbb\n ccc\n # but when I print the 
list I get:

aaa
 bbb
 ccc

(With a space at the beginning of the second and each following line.) Why?? 
(Thanks in advance as always for your help)

-- 
Kevin Pfeiffer <[EMAIL PROTECTED]>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to