I am trying to unzip a file using a Perl script. In order to unzip the file I chose to try and invoke the UNIX command system unzip. My problem seems to be that the command is not reading the variables.
my $file_path = "/home/data"
my $file_name = "TEST.ZIP"
system ('unzip $file_path/$file_name');
When I run the command I see.
unzip: cannot find /, /.zip or /.ZIP.
How do I solve this problem?