- or download this
use File::Basename qw(dirname);
my $script_dir = dirname($0);
my $path = "$script_dir/Pandoras Box/$file.txt";
...
- or download this
chomp(my $file =uc(<STDIN>));
my $path = "./Pandoras Box/$file.txt";
open FILE, '>>', $path or die "unable to append to $path: $!";
...
- or download this
my $path = "Pandoras Box/$file.txt";
...