hi

i have a script like this:

#!/usr/bin/perl

open (MOO, "loo");


   while (<MOO>)

  {
   s/moo/foo/g;

   }

what i'm trying to do is to replace all the moos in a
file called loo in the same directory where the script
is. when i run it i don't get any errors but there is
no results eather. in the loo - which is only a text
file like this:
moo

moo

moo

nothing happans. nothing's getting changed...

why?

thanks





_______________________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com.hk address at http://mail.english.yahoo.com.hk

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

Reply via email to