----- Original Message ----- From: "Peter Lemus" <[EMAIL PROTECTED]> > Hi I need to add a word to the end of a word inside a > file. > > HELP PLEASE > > for example: I will read a file with these names > july > tony > richard > > then I want to add the following to the name > @minime.com. So it will look like [EMAIL PROTECTED]
There are many ways to do it. Some would use regexes or map. Anyway heres one solution assuming your file contain only 1 word in one line.. open FILE, 'yourfile.txt' or die "$!\n"; while (<FILE>){ chomp; $_ = "$_\@minime.com"; print "$_\n"; }; close FILE; _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]