in reply to Re: A simple
in thread A simple,

(remembering the note about testing code before posting it...) That won't do the job...printing a space between every listitem will work the way kudra pointed out (using the join)

Jouke Visser, Perl 'Adept'

Replies are listed 'Best First'.
RE: RE: Re: A simple
by clemburg (Curate) on Oct 04, 2000 at 17:44 UTC

    This code:

    #!/usr/bin/perl -w use strict; my @list = qw (first second third fourth fifth sixth seventh eigth ninth tenth); print "@list";

    Does the following on my machine:

    Mi 04.10.2000 15:41:50,56 D:\tmp >perl try.pl first second third fourth fifth sixth seventh eigth ninth tenth Mi 04.10.2000 15:43:47,85 D:\tmp >
    Christian Lemburg
    Brainbench MVP for Perl
    http://www.brainbench.com