Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
which works fine...but if I have the variable a to rename the file with:print `cp x.txt y.txt';
the error message comes up when I run the Perl script dbi:print `cp x.txt $a_log.txt`
Any suggestions for using perl variables to rename a file with UNIX commands? I've also looked into the system() and exec() commands but have not come up with anything that works.Name "main::a_log" used only once: possible typo at dbi line 146. Use of uninitialized value in concatenation (.) or string at dbi line +146.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using UNIX commands inside Perl scripts, with Perl variables
by arturo (Vicar) on Jun 08, 2001 at 01:07 UTC | |
|
Re: Using UNIX commands inside Perl scripts, with Perl variables
by wog (Curate) on Jun 08, 2001 at 01:07 UTC | |
|
Re: Using UNIX commands inside Perl scripts, with Perl variables
by runrig (Abbot) on Jun 08, 2001 at 01:06 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |