Perl String operations
- by imerez
I have a string with the following e.g.
$workingFile = '/var/tmp/A/B/filename.log.timestamps.etc';
And two strings representing a dirs e.g.
$dir = '/var/tmp';
$newDir = '/users/asdf';
I'd like to get the following:
'/users/asdf/A/B/filename.log.timestamps.etc'
However my Perl isnt up to much .. any pointers ?
Thanks
W