[Gllug] Perl Newbie question
Andy Smith
andy at lug.org.uk
Wed Sep 5 09:48:39 UTC 2001
On Wed, Sep 05, 2001 at 10:44:01AM +0100, Matthew Bunter wrote:
> All,
>
> I have :
>
> @food=("apples","pears","eels");
> print"@food";
> print @food; # doesn't put spaces in between scalars
>
> The first print statement prints the scalars separated by a space. Does it therefore mean that the $" variable is a blank space?
>
> If so to get the scalars printed separated by # do I set $"=#?
What is wrong with
print join("#", @food);
??
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list