Hi,
Thanks a lot. It worked. :) Does that mean my mason is working perfectly?
I am actually trying to make Mason work on IIS in CGI mode. So I have
created a handler file. Now when I am trying to run it it gives me the
following error:
Can't locate object method "new" via package "HTML::Mason::Parser" (perhaps
you forgot to load "HTML::Mason::Parser"?) at mason.pl line 36.
Also , these are the lines that I have in my handler file. Could you please
tell me if I need to change the value of the path_translated variable? I am
not very sure what it should contain.
my $comp = $ENV{'PATH_TRANSLATED'}; # PATH_TRANSLATED is an env variable.
$comp =~ s/\\/\//g; # Replace '\' with '/'
my $root = $interp->comp_root;
$comp =~ s/^$root// or die "Component outside comp_root $root"; # Remove
root path from $comp
There is a workaround for the above lines for windows server 2003 and Mason
1.25. But mine is 1.42 and I haven't found any workaround for it. So does
that mean i should use the above? Here is a link to the entire handler file
code:
http://www.masonhq.com/?RunningMasonUnderIIS
Thanks a lot for your help.
Charmie
2010/7/19 Andrew Kopeyko <k...@zvuki.ru>
> charmie maniar wrote:
>
>> Hi,
>> I installed Mason and used the cpan.pm <http://cpan.pm> module to
>> automate the process to get the required perl modules.
>> I copied a program from the book named it "handshake.pl <
>> http://handshake.pl>". Its from the Mason book (O' Reilly publications).
>> But I am getting the following errors, please help:
>> C:\Perl\bin\perl>handshake.pl <http://handshake.pl>
>> Backslash found where operator expected at C:\Perl\bin\perl\handshake.pl<
>> http://handshake.pl> line 1, near "rtf1\"
>> Backslash found where operator expected at C:\Perl\bin\perl\handshake.pl<
>> http://handshake.pl> line 1near "ansi\"
>> Backslash found where operator expected at C:\Perl\bin\perl\handshake.pl<
>> http://handshake.pl> line 1, near "ansicpg1252\"
>>
>
> Seems "handshake.pl" is a Rich Text Format file, not plain text.
>
> Try to open it using Notepad - probably you will not see a perl-text.
>
> Use Wordpad\Write\Word to save it as "ANSI text".
>
> --
> Best regards,
> Andrew A. Kopeyko <k...@zvuki.ru>
> http://www.zvuki.ru/
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users