Fw: Could [you] [please] tell me how to remove white spacees presentbetween delimiter[s]

2005-09-02 Thread mayank . ahuja

'---'~^  '123PS01D'~^

here delimiter is ~^ 

'---'~^'123PS01D'~^

Do u see the difference in the two lines 
In the first one there is space is present i want to remove that one 
The second is ok..
I think it will clear u in the better way.


with regards



Mayank Ahuja
Assistant System Engineer
Tata Consultancy Services Limited
Ph:- 044-5816
Cell:- 9283199460
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
- Forwarded by Mayank Ahuja/CHN/TCS on 09/02/2005 09:16 PM -

Chris Devers <[EMAIL PROTECTED]> 
09/02/2005 09:03 PM
Please respond to
Perl Beginners List 


To
[EMAIL PROTECTED]
cc
Perl Beginners List 
Subject
Re: Could [you] [please] tell me how to remove white spacees 
presentbetween  delimiter[s]






On Fri, 2 Sep 2005 [EMAIL PROTECTED] wrote:

> I have a file like this in which data is 
> abc,def,xyz,mno, 
> 
> means the delimter is comma here
> 
> but in the string if it comes abc, def,  xyz, mno
> 
> then [please] tell me how to remove this white space.

The popular way to do this around here is with a Perl program.

Can you show the list the Perl program you've tried so far? 

If you can, we can try to give you feedback. 

Good luck!


-- 
Chris Devers

ForwardSourceID:NT6BA2 

Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

Re: Fw: Could [you] [please] tell me how to remove white spacees presentbetween delimiter[s]

2005-09-02 Thread Chris Devers
Please send all replies to list mail to the list, not to me.

If you send it to me, I'm just going to bounce it to the list and then 
respond to that. 

Thanks.


On Fri, 2 Sep 2005 [EMAIL PROTECTED] wrote:

> '---'~^  '123PS01D'~^
> 
> here delimiter is ~^ 
> 
> '---'~^'123PS01D'~^
> 
> Do [you] see the difference in the two lines[question mark]

> In the first one there is space is present[period] i want to remove 
> that one 
> The second is ok..
> I think it will clear u in the better way.


Not really. 

I asked you what code you've written so far.

You're showing me more about your data.

I don't care about the data.

Show us -- the list -- the code you've written to deal with the data 
you're dealing with, and *then* the conversation can begin. 

This list is not here to do people's jobs for them. You must show that 
you have at least tried to solve the problem yourself first.



-- 
Chris Devers

H'†æHÜÊ)}ó[Ú
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Fw: Could [you] [please] tell me how to remove white spacees presentbetween delimiter[s]

2005-09-02 Thread James Taylor

#!/usr/bin/perl

my $st1="'---'~^  '123PS01D'~^";
for(split(/\~\^/,$st1)) {
  $_ =~ s/\s//g;
  # Do something with your variable
}


Is that what you're asking? I'm unsure

[EMAIL PROTECTED] wrote:


'---'~^  '123PS01D'~^

here delimiter is ~^ 


'---'~^'123PS01D'~^

Do u see the difference in the two lines 
In the first one there is space is present i want to remove that one 
The second is ok..

I think it will clear u in the better way.


with regards



Mayank Ahuja
Assistant System Engineer
Tata Consultancy Services Limited
Ph:- 044-5816
Cell:- 9283199460
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
- Forwarded by Mayank Ahuja/CHN/TCS on 09/02/2005 09:16 PM -

Chris Devers <[EMAIL PROTECTED]> 
09/02/2005 09:03 PM

Please respond to
Perl Beginners List 


To
[EMAIL PROTECTED]
cc
Perl Beginners List 
Subject
Re: Could [you] [please] tell me how to remove white spacees 
presentbetween  delimiter[s]







On Fri, 2 Sep 2005 [EMAIL PROTECTED] wrote:

 

I have a file like this in which data is 
abc,def,xyz,mno, 


means the delimter is comma here

but in the string if it comes abc, def,  xyz, mno

then [please] tell me how to remove this white space.
   



The popular way to do this around here is with a Perl program.

Can you show the list the Perl program you've tried so far? 

If you can, we can try to give you feedback. 


Good luck!


 




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]