There is no problem with the variable interpolation or backslashes.
The two strings are the same:
my $emfile="02896787";
my $mBook =
'\\\\pchns2003z\SPECIALIZED_SERVICES_I\AnI\Embase\Pullfiles_IRNPD\inve
ntory\02896787.xlsx';
my $meBook =
"\\\\pchns2003z\\SPECIALIZED_SERVICES_I\\AnI\\Embase\\Pullfiles_IRNPD\
\inventory\\$emfile.xlsx";
print "$mBook\n$meBook\n";
print ($mBook eq $meBook ? "the same" : "different");
The problem lies elsewhere. If you ask Excel to open the same file in
two instances at the same time it will complain that it's already
open.
Try to open a different file :-)
Jenda
===== Je...@Krynicky.cz ===
http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery