You need to use the full path to the perl binary. If you did a default install into /ff/perl then it would be:
#!D:/webserve/ff/perl/bin/perl
or
#!/webserve/ff/perl/bin/perl
#!D:/webserve/ff/perl/bin/perl
or
#!/webserve/ff/perl/bin/perl