in reply to How do you add .RTF to a file
If you need to change the files in different directories you could simply recieve a command line argument that would contain the directory you need to evaluate and the do a chdir $ARGV[0], or the equivalent.#!perl use strict; my @file = glob "*"; foreach(@file){ if(/\./){next;} else{ rename $_ , $_ . ".rtf"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How do you add .RTF to a file
by Missing Words (Scribe) on Jun 05, 2003 at 14:50 UTC |