Folks,
again Perl is driving me mad ... :-(
I got the following:
So far everything is working fine and the output says:
However if I try to do something with the file it fails:
Where's my mistake ??
Best Regards,
Thomas
again Perl is driving me mad ... :-(
I got the following:
Code:
#!/usr/bin/perl
$file1=`ls /path/*.txt` # Note: There's only one file existing in the
directory, but the name might change.
system("echo \"Your file is called: $file1 \"");
So far everything is working fine and the output says:
Code:
Your file is called: /path/list1.txt
However if I try to do something with the file it fails:
Code:
#!/usr/bin/perl
$file1=`ls /path/*.txt`
system("mv $file1 /otherpath/oldlist.tmp");
# Note: I even tried masking the $ using \$file1 or something like '$file1' or \'$file1\' or \'\$file1\' or whatever possibility came to my mind ... No chance ...
Where's my mistake ??
Best Regards,
Thomas