[Gllug] Perl Newbie question
David Damerell
damerell at chiark.greenend.org.uk
Wed Sep 5 09:58:29 UTC 2001
On Wednesday, 5 Sep 2001, Matthew Bunter wrote:
>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?
['man perlvar']
$" This is like "$," except that it applies to array
and slice values interpolated into a double-quoted
string (or similar interpreted string). Default is
a space. (Mnemonic: obvious, I think.)
So, yes, and changing $" will have the desired effect.
--
David Damerell <damerell at chiark.greenend.org.uk> flcl?
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list