$,' see perldoc perlvar.
Regards,
Jonathan D Johnston
> -Original Message-
> From: George Gallen [mailto:[EMAIL PROTECTED]
> Sent: 12 June 2003 21:46
> To: [EMAIL PROTECTED]
> Subject: Reverse of Chomp...
>
>
> Is there a way to reverse chop/chomp
>
> I
On Fri, 13 Jun 2003, George Gallen wrote:
> Possibly in some cases, yes. In my case no. While
> yes by creating a second working array which is
> chomped would be fine, except for the additional
> memory needed to hold the second array. That also
> assumes that the array contents won't change from
- Original Message -
From: "Eric Amick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 9:15 PM
Subject: Re: Reverse of Chomp
> On Fri, 13 Jun 2003 13:49:45 +, you wrote:
>
> >Is there a way to reverse chop/chomp
>
On Fri, 13 Jun 2003 13:49:45 +, you wrote:
>Is there a way to reverse chop/chomp
>
>I'm reading into an array, then
> chomping off the last character of each of the
> array elements.
>
>Now I'd like to write the array back out
> to , but I want to put the \n's back between
> each of the
Title: Reverse of Chomp...
Thanks
to all, it seems join("\n",@array) will do exactly
what I
need. And for the STDOUT part, just tack on the
extra
\n for the last element.
I'll
have to look at join again to see what else it can do
as well
as map.
Thanks
for t
Try:
print STDOUT join "\n", @array;
Brad
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of George
Gallen
Sent: Thursday, June 12, 2003 1:46 PM
To: [EMAIL PROTECTED]
Subject: Reverse of Chomp...
Is there a way to reverse chop/chomp
I'm r
print STDOUT join(qq{\n},@array),qq{\n};
should do it.
Hope this helps
Tobias
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George
Gallen
Sent: Thursday, June 12, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: Reverse of Chomp...
Is there a way to
al Message-From: George Gallen
[mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 4:46
PMTo: [EMAIL PROTECTED]Subject:
Reverse of Chomp...
Is there a way to reverse chop/chomp
I'm reading into an array, then chomping off the last character of each of the
array eleme
George Gallen wrote:
Is there a way to reverse chop/chomp
I'm reading into an array, then
chomping off the last character of each of the
array elements.
Now I'd like to write the array back out
to , but I want to put the \n's back between
each of the lines.
Aside from looping through th
Title: Reverse of Chomp...
Would this
work?
map { print "$_ \n" }
@array;
I think that
still loops through it though. H.
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of
George GallenSent: Thursday, June 12,
Title: Reverse of Chomp...
Is there a way to reverse chop/chomp
I'm reading into an array, then
chomping off the last character of each of the
array elements.
Now I'd like to write the array back out
to , but I want to put the \n's back between
each of the line
11 matches
Mail list logo