[WM] Invalid argument

Duncan Cameron dcameron.bcs.org.uk
Fri Dec 27 04:56:03 GMT 2002


On 2002-12-27 Alan Fitch wrote:
>On Thursday 26 Dec 2002 10:19 pm, Warren Post wrote:
>> I am new to WebMake and need some help correcting an error. When I
>> invoke WebMake from the command line ("webmake" with no arguments, no
>> options) while in my working directory I get:
>>
>> mkdir //.webmake: Invalid argument at
>> C:/Perl/site/lib/HTML/WebMake/Main.pm line 325
>>
>Hi Warren, 
>          I've never used webmake on Windows, but it looks like
>it is translating your home directory to //
>
>I would guess that that may be a feature of the windows install
>of perl. I guess you have to set an environment variable when installing
>active state to tell it how to find each users' home directory.
>
>Try checking the Active State documentation to see if you need to
>set any environment variables for Perl,

You need to set an environment variable HOME, I have the following
in my autoexec.bat

set HOME=.

see the first 2 lines of the function sed_fname for what is going on.
I think that the second line is a bug as it causes the doubled '/'
error, possibly $home should be defaulted to '.'

Regards,
Duncan Cameron









More information about the Webmake-talk mailing list