in reply to concatenation of variables resulting in 2 seperate lines

What are these lines supposed to do:

$source="C:\shyam\dir1; $sym="\";

These do not look like they are syntactically correct. Please reduce your program to a short, runnable program that still reproduces the problem.

Also note that backslashes in double quotes likely do not mean what you think they do. Double quotes interpret backslashes.

Replies are listed 'Best First'.
Re^2: concatenation of variables resulting in 2 seperate lines
by rkshyam (Acolyte) on Jul 25, 2012 at 11:20 UTC
    those 2 are two variables needed for concatenation final my $source_mod should contain "C:\shyam\dir1\dir2" that is the $source is concatenated with two variables \ and dir2.I am + not sure how backslash can be used to concatenate as a variable

      There is at least one quote missing in this line:

      $source="C:\shyam\dir1;

      Again, please fix your program, or post the real program and not some vague interpretation.