Re: Reverse of Chomp...

2003-06-18 Thread Jonathan D Johnston
On Wed, 18 Jun 2003 15:18:31 +0100 Beckett Richard-qswi266, <[EMAIL PROTECTED]> wrote: > Surely the nicest way is to set the output array seperator to \n? > > i.e. > > $\ = "\n"; > print @array; Hi Richard, I'm afraid your idea won't help George much. If you reread his email, you will see that he

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 the info. George -Ori

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 reading into an arr

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 rev

RE: Reverse of Chomp...

2003-06-12 Thread Thomas, Mark - BLS CTR
Title: Message You mean like this?   print join "\n", @array; -- Mark Thomas    Thomas.Mark@bls.gov Internet Systems Architect User Technology Associates, Inc. $_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;   -Original Message-

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, 2003 3:46 PMTo