Re: extra space in column (obvious answer but I can't find it)

2002-10-13 Thread Elias Assmann
On Sun, 13 Oct 2002, K Pfeiffer wrote: @words = STDIN; snip I expect @words to look like: qw# aaa\n bbb\n ccc\n # but when I print the list I get: I bet they actually do look like that. aaa bbb ccc Let me guess: you printed them like print @words; -- right? When you interpolate an

extra space in column (obvious answer but I can't find it)

2002-10-13 Thread K Pfeiffer
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

Re: extra space in column (obvious answer but I can't find it)

2002-10-13 Thread K Pfeiffer
Elias Assmann writes: [...] Let me guess: you printed them like print @words; -- right? When you interpolate an array in double quotes, a space is inserted between elements. Try it this: [...] Ja, das war es! (Thanks!) -- Kevin Pfeiffer [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL