Merge pull request #53 from alexlehm/cgi_perl_example

fix perl example, change chmod
This commit is contained in:
deepend-tildeclub 2024-05-08 12:51:09 -06:00 committed by GitHub
commit cf5897d00a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -126,10 +126,10 @@ would be noted in each example.
(also works with <q><samp>.pl</samp></q> file extension): (also works with <q><samp>.pl</samp></q> file extension):
#!/usr/bin/perl #!/usr/bin/perl
print "Status: 200"; print "Status: 200\n";
print "Content-Type: text/plain"; print "Content-Type: text/plain\n";
print ""; print "\n";
print "Hello World!"; print "Hello World!\n";
Note that Perl was the main language of choice Note that Perl was the main language of choice
back in the heyday of CGI programming. back in the heyday of CGI programming.
@ -189,7 +189,7 @@ put the script (or executable) in a file anywhere inside your <q>`public_html`</
of your Tilde.club home directory, of your Tilde.club home directory,
with appropriate file extension; with appropriate file extension;
and also make sure that the thing is **world-readable** _and_ **world-executable** and also make sure that the thing is **world-readable** _and_ **world-executable**
(something like <q>`chmod o+rx YOURFILE.EXT`</q> would do). (something like <q>`chmod +rx YOURFILE.EXT`</q> would do).
If you use other language that compiles to a binary executable, If you use other language that compiles to a binary executable,
just world-executable permission will suffice. just world-executable permission will suffice.