This is what I have so far:
#!/usr/bin/perl
use File::Copy;
print "Enter the customer Index";
$index = <STDIN>;
chop $index;
if (!$index) { print "You need to type something!\n"; }
print "Enter the customer name with spaces replaced with underscores and suffixed with the Index number, eg. o_learys-1";
$customer_name = <STDIN>;
chop $customer_name;
if (!$customer_name) { print "You need to type something!\n"; }
$file = "CPE_Option_A.txt";
$newfile = $file . $customername;
#mkdir "$customer_name", 0777 unless -d "$customer_name";
copy ($file, $newfile) or die "you got the code wrong"
But it's not working.
It seems to try copying the original and the new file. Which makes me think that I'm getting the concatenation wrong, but I can't see how!