Re: Reverse of Chomp...

2003-06-18 Thread Jonathan D Johnston
$,' 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&#

RE: Reverse of Chomp..(regarding not chomping)

2003-06-14 Thread Carl Jolley
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

Re: Reverse of Chomp

2003-06-13 Thread Gerry Green
- 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 >

Re: Reverse of Chomp

2003-06-13 Thread Eric Amick
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

RE: Reverse of Chomp...

2003-06-12 Thread George Gallen
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

RE: Reverse of Chomp...

2003-06-12 Thread Bradley K. Embree
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

RE: Reverse of Chomp...

2003-06-12 Thread Tobias Hoellrich
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

RE: Reverse of Chomp...

2003-06-12 Thread Thomas, Mark - BLS CTR
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

Re: Reverse of Chomp...

2003-06-12 Thread Michael Higgins
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

RE: Reverse of Chomp...

2003-06-12 Thread Scot Robnett
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,

Reverse of Chomp...

2003-06-12 Thread George Gallen
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