So all I need to do is fix my spelling error and (add the "N") and I'm
good to go, right? Then when I'm in the command line in the Terminal,
to access the PRINCETON;DELLSERVER directory, I would use, for example:
% ls -l /Volumes/'PRINCETON;DELLSERVER'/
or
% ls -l /Volumes/PRINCETON\\;DELLSERVER/
or
% ls -l /Volumes/'PRINCETON\\;DELLSERVER'/
Am I getting warm?
Thanks,
Mark
On Apr 30, 2004, at 10:50 PM, Sherm Pendley wrote:
On May 1, 2004, at 1:37 AM, Mark Wheeler wrote:
With that changed, does everything in the script look in order to
function correctly? Or do I need to change it to
/Volumes/PRINCETON\;DELLSERVER/";
No, you're using Perl's built-in copy() function, so the back-slash
isn't needed. It's only needed if you're calling an external tool such
as cp or CpMac, for example, and passing the file name.
Note that, as it stands, the backslash in the source code isn't
actually making it into the string. The string is double-quoted, so \;
is interpreted as an escape sequence. Since \; isn't a valid escape
sequence, the backslash is ignored and the result is just a semicolon.
To insert a literal backslash into a double-quoted string, you need to
double it - \\.
sherm--