| Programming PHP | PERL | ASP| ColdFusion| C++ Chat with other forum members about programming. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
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?
|
|
|||
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
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
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
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






Linear Mode
