in reply to Re^2: concatenating strings
in thread concatenating strings

tlm's code is correct, so if there's anything not working, I suspect you're not removing the newline from the filename (a line from a filehandle will always end in newline unless EOF happens first)

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";

Replies are listed 'Best First'.
Re^4: concatenating strings
by imperl (Novice) on May 04, 2005 at 11:41 UTC
    Thank You, Joost and tlm. What can I say, the ubiquitous chomp did it!:)