469,325 Members | 1,667 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,325 developers. It's quick & easy.

modifying text using perl

Hi,

What function I should use if I want to clean text using perl.

Example.

Input for my perl based shell command is

SMI-1234 566.5.2.3.4.5.5.192.168.1.1 = "huuhaa" : SMI-1234 566.5.2.3.4.5.5.192.168.1.2 = "jepjep" : SMI-1234 566.5.2.3.4.5.5.192.168.1.3 = "sapsap" : ....

Output what I wnat is

192.168.1.1 = "huuhaa"
192.168.1.2 = "jepjep"
192.168.1.3 = "sapsap"
....

br Hone
Oct 10 '07 #1
3 1459
Atli
5,058 Expert 4TB
Hi. Welcome to TSDN!

I have moved your question over to the Perl Forums, where the Perl experts are more likely to find it.

Moderator
Oct 10 '07 #2
numberwhun
3,503 Expert Mod 2GB
Hi,

What function I should use if I want to clean text using perl.

Example.

Input for my perl based shell command is

SMI-1234 566.5.2.3.4.5.5.192.168.1.1 = "huuhaa" : SMI-1234 566.5.2.3.4.5.5.192.168.1.2 = "jepjep" : SMI-1234 566.5.2.3.4.5.5.192.168.1.3 = "sapsap" : ....

Output what I wnat is

192.168.1.1 = "huuhaa"
192.168.1.2 = "jepjep"
192.168.1.3 = "sapsap"
....

br Hone
There is no one function that will do that for you. Instead, just like any other language, you are going to have to code to format your output like that. Why don't you give it a shot and if you need assistance, then post the code here (enclosed in the proper code tags) and we will help you troubleshoot it and get it working.

Regards,

Jeff
Oct 10 '07 #3
There is no one function that will do that for you. Instead, just like any other language, you are going to have to code to format your output like that. Why don't you give it a shot and if you need assistance, then post the code here (enclosed in the proper code tags) and we will help you troubleshoot it and get it working.

Regards,

Jeff
-------------

I get answer from other site so thx.....
Oct 10 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

16 posts views Thread by Japcuh | last post: by
3 posts views Thread by Vumani Dlamini | last post: by
1 post views Thread by Xah Lee | last post: by
1 post views Thread by Joe Cool | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by mdpf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.