views:

112

answers:

3

I have a website that I am making and I was going to implement a perl script into it. This script goes to another page gets a .csv file and reads in the lines and parses out what I need. The problem I have just ran into is that my hosting server apparently does not allow custom CGI scripts on an MS server. I chose the MS server so I could use ASP and apparently lost other functionality when doing so. Is there another language that I can use to get the same effect as my perl script? Here is what I have been using in perl(this is not all of the script, I didnt feel it was necessary to post it all):

 sub getFile{
        my $mech = WWW::Mechanize->new();
        $mech->get('somesite.com');
            die "Error: failed to load the web page" if (!$mech->success());
        $mech->follow_link( url_regex => qr/yesterday_hail/i );
            die "Error: failed to load the web page" if (!$mech->success());
        $mech->save_content("somefile".csv");
    }

It would then do a bunch of work to the file and output that. Really what I was wanting was just this part and I dont know how to do it in other languages.

+1  A: 

Given that you chose the server because it supported ASP, then one of the languages your ASP environment supports would be a logical choice. That suggests VBScript as the language.

David Dorward
Do you know how to go to another page and pull that data with VBScript or atleast where I should get started on learning how to do that?
shinjuo
I haven't touched VB this side of 2000, so no.
David Dorward
+3  A: 

Can you run your perl script or invoke perl at all from ASP? I'm not at all familiar with ASP, but I assume this is possible unless your hosting provider bars it.

First rule of hosting is if your provider doesn't do what you want, look for a new provider that does...

ysth
I have been debating on finding a new host but I was trying to make this one work.
shinjuo
+2  A: 

Why can't you use ASP.NET and what makes you implement this task on Perl?

Upd

Well, consider what technologies you know other than Perl that can be run on your server. Anyway, ASP.NET could be the best choice on MS platform for small web applications and is easy to use if C# is already easy thing for you. ASP.NET MVC should be better for big applications and that's not the case here, i think.

For Perl development i usually use *nix VM writing and running server there and not on Windows. You could develop this way, locally, and use some simple Unix-hosting for publishing if anyone else needs access.

terR0Q
I am learning ASP which is why I chose the MS version of the hosting. The perl script is for another site that doesnt need ASP, but I have the hosting. I am very new to asp and was not sure if it could do what I needed.
shinjuo
@shinjuo read my update
terR0Q