Home: Perl Programming Help: Intermediate:
How can I do for exctract chars and replace it?



abelsgmx
Novice

Oct 3, 2002, 6:15 PM


Views: 2891
How can I do for exctract chars and replace it?

Hi from Mexico, I need some help about this:



I need find a substring and insert other in the same position. Example:

"The world is a beattifull place to live", and I need change "world" for "universe" and the phrase most be "The universe is a beattifull place to live".

ok, thanks a lot Perl Masters and sorry for my bad english dommain...



Long Live to Linux and Perl...


davorg
Thaumaturge / Moderator

Oct 4, 2002, 12:53 AM


Views: 2886
Re: [abelsgmx] How can I do for exctract chars and replace it?

You need to look at the substitution operator and regular expressions.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


abelsgmx
Novice

Oct 9, 2002, 12:00 PM


Views: 2867
Re: [davorg] How can I do for exctract chars and replace it?

Thanks a lot for your help!!
Smile