you should do something like:
print "Enter basename: "; my $filename = <STDIN>; chomp $filename;
You can check that the variables actually contain what you think they do by printing them out with delimiters around them:
print "File=>>$filename<<\n";
In reply to Re^3: concatenating strings
by Joost
in thread concatenating strings
by imperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |