Hi,

On 2007/02/26, at 11:08, [EMAIL PROTECTED] wrote:


The above code does not seem to work for me.
I get an error saying $" is unrecognised.
do i need to include anything ?

Actually, I'm using Perl 5.8.8. I don't know if 5.6 or lower has that variable. Actually, it does. If you are on unix you can try this:

$ perl -e '@a = qw(1 2 3 4); { local $" = "\n"; print "@a" }'

The output will be like this:

1
2
3
4

From "perldoc perlvar":
       $LIST_SEPARATOR
$" This is like $, except that it applies to array and slice val- ues interpolated into a double-quoted string (or similar inter- preted string). Default is a space. (Mnemonic: obvious, I
               think.)

HTH!

--
Igor Sutton
[EMAIL PROTECTED]



Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to