DS has asked for the wisdom of the Perl Monks concerning the following question:
and change it to the following ::dir=../somthing.cpp
I am trying ::dir=../mainDir/sudir/somthing.cpp
I am having a littel bet hard time with the .cpp file.. can someone give me an idea .. thanks a lotwhile <out> { if ( m/^:dir/) $_ = s/$_/:dir=../mainDir/sudir/somthing.cpp/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: changing name within a file
by DamnDirtyApe (Curate) on Aug 29, 2002 at 22:50 UTC | |
|
Re: changing name within a file
by greenFox (Vicar) on Aug 30, 2002 at 00:38 UTC |