Raj (Basavaraj) Karadakal said:
> Hi,
>       I am trying to modify some file sin place usinh the -i switch of
> perl. In each of the files however I need to replace certain strings with
> file name it self.
>
> When I try the following command
> perl -i.orig -pe 's/<NAME>/$0/' `ls -1`
>
> Will replace '<NAME>' with '-e' in all the files
>
> How can I get the file names in my script?

$ARGV

perldoc perlvar

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net


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

Reply via email to