in reply to Re: Deciphering $data
in thread Deciphering $data

Basically I want to append "$data.brf" to "$data_dir" and then print it,so am I am trying to interpolate $data,if I use the way you suggested..I am not able to append...

$data_brf=$data_dir.'\\$data\.brf'; print "$data_brf";

Replies are listed 'Best First'.
Re^3: Deciphering $data
by GrandFather (Saint) on Apr 01, 2012 at 10:09 UTC

    I suggest you copy and paste the code I gave earlier. It is not what you implied I suggested. Consider:

    use strict; use warnings; my $data_dir = 'c:\\Wibble'; my $data = 'Plonk'; my $data_brf = "$data_dir\\$data\.brf"; print "$data_brf\n";

    Prints:

    c:\Wibble\Plonk.brf

    If that is not what you want you better show us the contents of $data_dir and $data, and show us what you expect to see printed.

    True laziness is hard work