Tech2 Forums - Powered by vBulletin

How to run perl scripts?

This is a topic on How to run perl scripts? within the Programmers Corner forums, part of the Technology category; Hi, I am new to cgi and am currently learning perl. I would like to know how to test these ...

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Tech2 Members uniquerockrz's Avatar
    Join Date
    Apr 2010
    Location
    Kolkata
    Posts
    171
    Liked
    0 times
    Reputation points
    2

    How to run perl scripts?

    Hi, I am new to cgi and am currently learning perl. I would like to know how to test these scripts on my free hosting server, i.e. where to save the file and what to write after #!. I have an account in freehostia, and I looked at my home directory using file manager. There is no cgi-bin/bin directory, though free hosting plan support perl scripting. Please help
    Oops!

  2. #2
    Uber Newbie
    Join Date
    Mar 2009
    Location
    Bhuj - Gujarat
    Posts
    1
    Liked
    0 times
    Reputation points
    0

    Re: How to run perl scripts?

    You are going to write PERL scripts on your local machine right?

    If yes, then download sources...

    -- Wed Sep 22, 2010 10:45 am --

    And then tell me.. I'll help you.
    And, I don't know about online server hostings. Sorry.

  3. #3
    Tech2 Members uniquerockrz's Avatar
    Join Date
    Apr 2010
    Location
    Kolkata
    Posts
    171
    Liked
    0 times
    Reputation points
    2

    Re: How to run perl scripts?

    Not really, I thought I would make scripts to make my website more interactive. Thanks for your help
    Oops!

  4. #4
    Uber Newbie
    Join Date
    Jul 2010
    Posts
    0
    Liked
    2 times
    Reputation points
    10

    Re: How to run perl scripts?

    did you tried connecting through ftp? i think you must put your file in cgi-bin dir.
    well, i dont know perl. so whats more in perl that php cant to make site more interactive?

  5. #5
    Tech2 Members xubz's Avatar
    Join Date
    Oct 2007
    Posts
    37
    Liked
    3 times
    Reputation points
    2

    Re: How to run perl scripts?

    Perl?

    Tell me exactly.. WHY have you chosen Perl when there are more modern scripting languages available like PHP/Ruby/Python?

  6. #6
    Uber Newbie
    Join Date
    Jul 2010
    Posts
    0
    Liked
    2 times
    Reputation points
    10

    Re: How to run perl scripts?

    ^+1

  7. #7
    Tech2 Members uniquerockrz's Avatar
    Join Date
    Apr 2010
    Location
    Kolkata
    Posts
    171
    Liked
    0 times
    Reputation points
    2

    Re: How to run perl scripts?

    Friends thats in my syllabus, and we have a project to make a site using it. PHP could have been lot better, but sorry, cant help. Someone also told me that perl is a very powerful scripting language
    Oops!

  8. #8
    Uber Newbie
    Join Date
    Mar 2009
    Location
    Bhuj - Gujarat
    Posts
    1
    Liked
    0 times
    Reputation points
    0

    Re: How to run perl scripts?

    Same like me... Like I'm learning php and ASP.NET but still, PERL is in our syllabus... So it has to be learnt.

    And, Noone has ever told
    perl is a very powerful scripting language
    to me ever.

  9. #9
    Moderator coolpcguy's Avatar
    Join Date
    Mar 2007
    Location
    Bangalore
    Posts
    627
    Liked
    99 times
    Reputation points
    71

    Re: How to run perl scripts?

    Quote Originally Posted by uniquerockrz
    what to write after #!.
    [code=php:vp00zceu]<span class="syntaxdefault">
    </span><span class="syntaxcomment">#!/usr/bin/perl
    //*your*perl*code
    </span><span class="syntaxdefault">*</span>[/code:vp00zceu]

    Give permissions
    Code:
    chmod u+x </path/to/your/perl/script>
    And embed it in your HTML file.
    Moderator at Super User, Web Apps Stack Exchange|Gamer|Drunk Coder|Music Lover|Maniac twitterer|Personal Blog|About Me
    Gadgets - HP Envy 14 / i5 520M / 8 GB / 128GB SSD / 1TB Seagate GoFlex | D-Link DGL 4500 | Denon AH-C360| Klipsch S4a| Fiio E5 | Samsung Galaxy SII | Dell U2312HM

    My Gear :HP Envy 14 / i5 520M / 8GB / 500GB HDD / 1TB Seagate GoFlex | Google Cr-48 | D-Link DGL 4500 | Denon AH-C360| Klipsch Image S4a | Fiio E5 | iPhone 3GS| Galaxy S II | Dell U2312HM| X-tatic 5.1 Gaming Headset | Logitech G400 Optical Mouse

  10. #10
    Tech2 Members uniquerockrz's Avatar
    Join Date
    Apr 2010
    Location
    Kolkata
    Posts
    171
    Liked
    0 times
    Reputation points
    2

    Re: How to run perl scripts?

    Fine. And where to save the scripts? And what should be the extension? .pl or .cgi?
    Oops!

Page 1 of 2 12 LastLast

Similar Threads

  1. Need for speed most wanted black edition files
    By vinay_001 in forum Gaming
    Replies: 1
    Last Post: 11-18-2006, 01:59 PM
  2. hwy dont we open our own software inc.
    By $$gururaj$$ in forum General Discussions
    Replies: 1
    Last Post: 10-27-2006, 10:31 PM
  3. error trying to play f1 2000!
    By vrod in forum Gaming
    Replies: 1
    Last Post: 07-19-2006, 06:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •