Steve Harper wrote:

> Can someone please tell me why the following doesn't work?  Observe:
> 
> In Windows 2000 CMD.exe, with ActiveState Perl 5.6.1 Build 631
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> D:\>copy con testtextfile.txt
> This is this, that is that
> Thats all folks!
> ^Z
>         1 file(s) copied.
> 
> D:\>perl -pi.bak -e 's/this/that/g' testtextfile.txt
> 
> D:\>md5sum test*
> ca08d1da587bff5a25bb33f22fa62df7 *testtextfile.txt
> ca08d1da587bff5a25bb33f22fa62df7 *testtextfile.txt.bak


I get:

74d5c5e10b51b882fa5438a4f99cc111 *testtextfile.txt
ca08d1da587bff5a25bb33f22fa62df7 *testtextfile.txt.bak

but then I'm using anative tcsh for my shell.  :)


> D:\>rm *.bak
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Now, lets try that in Cygwin w/ it's perl v5.6.1...
> 
> Administrator@PSIONIC /cygdrive/d
> $ perl -pi.bak -e 's/this/that/g' testtextfile.txt
> 
> Administrator@PSIONIC /cygdrive/d
> $ md5sum test*
> 74d5c5e10b51b882fa5438a4f99cc111 *testtextfile.txt
> ca08d1da587bff5a25bb33f22fa62df7 *testtextfile.txt.bak
> 
> Administrator@PSIONIC /cygdrive/d
> $




-- 
   ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
  (_/   /  )    // //       DBE Collectibles   Mailto:[EMAIL PROTECTED]
   / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to