Front page | perl.beginners |
Postings from February 2002
Re:Interpreting variable
Thread Next
From:
Jorge Goncalvez
Date:
February 27, 2002 01:27
Subject:
Re:Interpreting variable
Message ID:
200202270927.KAA17053@cabs40.col.bsf.alcatel.fr
Hi, I have this snippet:
sub GetCygwinMountsPath(){
.......
}
my $CMPath = GetCygwinMountsPath();
print ("The path is: $CMPath");
system(q{perl -i.orig -pe "s!/cygdrive/c!/!g" $CMPath/cygwin/etc/passwd});
but in th elast line $CMPath seems not to be interpreted althought $CMPath
="c:/".
Why?
i have the following error:
The path is: C:/Can't open $CMPathcygwin/etc/passwd: No such file or directory.
Thanks.
Thread Next
-
Re:Interpreting variable
by Jorge Goncalvez