in reply to Re: Another Windows Mapping Question
in thread Another Windows Mapping Question

How would it look in the actual script?

Replies are listed 'Best First'.
Re^3: Another Windows Mapping Question
by ikegami (Patriarch) on Sep 25, 2008 at 01:58 UTC
    #!/usr/bin/perl use strict; use warnings; use File::Copy qw( copy ); copy $ARGV[0], $ARGV[1];

    It needs error checking.

    If you need to hardcode a UNC path, you can either properly escape backslashes

    my $path = '\\\\server\\share\\dir\\file';

    or simply use forward slashes.

    my $path = '//server/share/dir/file';

    open has no problem with either.

      Thank you for your help. Could I use this to use a File::Glow on that as well?
        File::Glob, you mean? try and see.