Windows uses file extensions for a variety of reasons, so it expects the
period in file names. In most cases, the file spec "*" will only return
files with no extension, such as "README". Have you tried "*.*" instead?

Bob McConnell

> -----Original Message-----
> From: John Degen [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 18, 2007 8:26 AM
> To: beginners@perl.org
> Subject: [Perl 5.8.8 on WinXP] Command line usage
> 
> Hello,
> 
> I'm using Perl 5.8.8 from ActiveState on Windows XP. I'm 
> trying to accomplish a search and replace in a number of 
> files in the same directory from the command line (cmd.exe). 
> The problem is that the command perl -i -e "s/old/new/" * 
> fails silently, i.e. no changes take place. My question is: 
> does * indicate all files in the current directory (this did 
> work in the Windows version of sed I tried)? I cannot find 
> this in the docs or using Google. Or am I making another mistake?
> 
> Thank you for your time.
> 
> John Degen 
> 
> -- 
> Sane sicut lux seipsam, & tenebras manifestat, sic veritas 
> norma sui, & falsi est. -- Spinoza
> 
> 
> 
> 
>  
> ______________________________________________________________
> ______________________
> Get your own web address.  
> Have a HUGE year through Yahoo! Small Business.
> http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> http://learn.perl.org/
> 
> 
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to