develooper Front page | perl.beginners | Postings from September 2012

Re: Catfile function not working on windows 7 machine

Thread Previous | Thread Next
From:
Dr.Ruud
Date:
September 1, 2012 10:43
Subject:
Re: Catfile function not working on windows 7 machine
Message ID:
20120901174315.27200.qmail@lists-nntp.develooper.com
On 2012-08-08 12:17, Sandip Karale wrote:

> use File::Spec::Functions;
> my $f="foo.txt";
> my $d="\\\\\\\\mach\\\\dir";

Try:

   my $d = '//mach/dir';


> print "$f \n";
> print "$d \n";
> print catfile($d,$f);

-- 
Ruud



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About