Re: array operation
- From: Arun.S@xxxxxxxxx (Arun S)
- Date: Mon, 26 Feb 2007 16:38:15 +0530
Hi,
On 2007/02/26, at 10:12, John W. Krahn wrote:
print map "$_\n", @test;
print "$_\n" for @test;
Another solution is setting the $" variable:
my @array = qw(1 2 3 4 5);
{
local $" = "\n";
print "@array";
}
The above code does not seem to work for me.
I get an error saying $" is unrecognised.
do i need to include anything ?
Whilst this email has been checked for all known viruses, recipients should undertake their own virus checking as Xansa will not accept any liability whatsoever.
This email and any files transmitted with it are confidential and protected by client privilege. It is solely for the use of the intended recipient.
Please delete it and notify the sender if you have received it in
error. Unauthorised use is prohibited.
Any opinions expressed in this email are those of the individual and not
necessarily the organisation.
Xansa, Registered Office: 420 Thames Valley Park Drive,
Thames Valley Park, Reading, RG6 1PU, UK.
Registered in England No.1000954.
t +44 (0)8702 416181
w www.xansa.com
.
- Follow-Ups:
- Re: array operation
- From: Igor Sutton Lopes
- Re: array operation
- References:
- Re: array operation
- From: Igor Sutton Lopes
- Re: array operation
- Prev by Date: Re: array operation
- Next by Date: Re: array operation
- Previous by thread: Re: array operation
- Next by thread: Re: array operation
- Index(es):