in reply to Re: Re: Re: Re: Re: Portability question: Is there something like '#ifdef' in Perl?
in thread Portability question: Is there something like '#ifdef' in Perl?
The file t.pl is just a line with 'print "hello world!\n";' and one of the soutions I see is to use the Win32::GetShortPathName function.[C:/tmp] cat x.pl my $ret = system ("D:\\Program Files\\bin\\t.pl"); if ($? !=0 ) { print "ERROR: ret=[$?], err msg [$!]\n"; } [C:/tmp] ./x.pl 'D:\Program' is not recognized as an internal or external command, operable program or batch file. ERROR: ret=[256], err msg [No such file or directory]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Portability question: Is there something like '#ifdef' in Perl?
by BrowserUk (Patriarch) on Sep 30, 2003 at 21:26 UTC | |
by sureshr (Beadle) on Oct 01, 2003 at 20:40 UTC | |
|
Re: Re: Re: Re: Re: Re: Re: Portability question: Is there something like '#ifdef' in Perl?
by PodMaster (Abbot) on Oct 01, 2003 at 21:02 UTC |