Go Back   iTrader Forums » iTrader Chat » General Chit Chat » Programming PHP | PERL | ASP| ColdFusion| C++

Programming PHP | PERL | ASP| ColdFusion| C++ Chat with other forum members about programming.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 5th August 2008, 03:35 AM
Junior Member
 
Join Date: Aug 2008
Posts: 1
Credits: 0
Default Perl Magic Line???????

I Have ActivePerl on Mac OS X and I am trying to run a script, but it does not run, the document is good but I am not sure what the right command line or magic line is.If they mean the 1st line my 1st line is "#!usr/bin/perl"Is that wrong??? Someone help plzIm not sure how to make my script executable, everytime I try to run it on terminal it does not work, heres the code:#!usr/bin/perlfor($x=0;$xnew;my $req = GET $url, Referer =>"(no=)";print $agent->request($req)->as_string;}More help plz?
Reply With Quote
  #2 (permalink)  
Old 5th August 2008, 03:54 AM
Junior Member
 
Join Date: Aug 2008
Posts: 1
Credits: 0
Default

1.Get the location of your Perl interpreter , assume it's C:\dirx\perl.exe2. Add this line to the first line in the script :#!C:\dirx\perl.exe .This line tells the system where the interpreter program is so that it can translate ur script into the machine language .3.Make the script executable if on Unix/Linux
Reply With Quote
  #3 (permalink)  
Old 5th August 2008, 05:37 AM
Junior Member
 
Join Date: Aug 2008
Posts: 1
Credits: 0
Default

you are missing the / between ! and usr.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:33 AM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
Ad Management by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72