I'd agree if I were using single backslashes, but the double ones translate to a single backslash in the path. See the snippet below.
Both ways yield the same results.
Thanks for your help!
#!/usr/bin/perl -w use strict; use File::Copy; my $new='c:\\temp\\mytest'; printf ("new = $new"); open NEW, ">$new" or die "I can not open file to write: $!\n"; print NEW "this is a test"; close NEW; << this yields the following on the CMD screen: >> new = c:\temp\mytest C:\Program Files\OptiPerl\webroot\cgi-bin>
In reply to Re^4: Problem Modifying Files
by mikeatrcn
in thread Problem Modifying Files
by mikeatrcn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |