in reply to Help with @LoL
You are interpolating an array into a string; when you do this, you get a string with the elements of the array separated by the value of the $" variable, by default a single space.
e.g. -
Hope this helps!
Will yield: This is an interpolated array: foo bar bazmy @array = qw(foo bar baz); my $string = "@array"; print "This is an interpolated array: $string";
Hope this helps!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Help with @LoL
by zzspectrez (Hermit) on Nov 26, 2000 at 11:44 UTC | |
by jptxs (Curate) on Nov 26, 2000 at 22:13 UTC | |
by zzspectrez (Hermit) on Nov 27, 2000 at 00:29 UTC | |
by jptxs (Curate) on Nov 27, 2000 at 01:07 UTC | |
by agoth (Chaplain) on Nov 27, 2000 at 14:56 UTC | |
by jptxs (Curate) on Nov 28, 2000 at 07:40 UTC | |
by Fastolfe (Vicar) on Nov 26, 2000 at 19:41 UTC |
In Section
Seekers of Perl Wisdom