[Gllug] Perl Newbie question
David Irvine
co2cool at yahoo.com
Sun Sep 9 04:11:37 UTC 2001
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 $"=#?
>
>Before you say try it, I have. I am in France with a French keyboard and I get 3 when I set the $"=#, please set my mind straight. To choose 3 you have to do shift as well - you guys can smile I have to suffer!
>
>Can't remember where the # is on a GB keyboard - can someone remind me. I've searched the whole building and no-one has a GB keyboard!
>
>Rgs,
>
>Matt
>
>Apologies in advance but more Perl newbie questions may be coming your way over the next few weeks/months.
>
>
>
>_______________________________________________________________________
>FSmail - Get your free web-based email from Freeserve: www.fsmail.net
>
>
>
>
>
the # is below the ~ which is the far right key before the enter key on
the home key line
$"=#;
@food=("apples","pears","eels");
print"@food";
print @food; # doesn't put spaces in between scalars
apples3pears3eelsapplespearseels
HTH
David
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list