Hi,
can you please help me with one problem?
I read from some file the lines looking like
/dir1/dir2/$dirX/dir3/$dirY/filename.
$dirX and $dirX are some variables, they are passed to perl program as input parms.
In which way can I set the variable $path=the above value with substitution of $dirX and $dirY?
I attempted to use eval command but failed with it.
Is it possible to eval it, as it can be done in ksh script?
Thank you in advance.
Anta
can you please help me with one problem?
I read from some file the lines looking like
/dir1/dir2/$dirX/dir3/$dirY/filename.
$dirX and $dirX are some variables, they are passed to perl program as input parms.
In which way can I set the variable $path=the above value with substitution of $dirX and $dirY?
I attempted to use eval command but failed with it.
Is it possible to eval it, as it can be done in ksh script?
Thank you in advance.
Anta