Tinkering with Perl

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  13  14  15  16  17  18  19  20  21  22  Next  Skip Forward
Printer-Friendly Version

chmod

chmod is the Unix command used to set permissions, including telling the computer that a file can be run as a program.

To make it so that everybody can use a program, type:

chmod 755 filename

where filename is the name of the file, which should be something like "hello_world.pl".

Alternately, to make it so that only you can use the program, type:

chmod 700 filename

You must do this before you can run a program. If you've been following along this book in order, please type:

chmod 755 hello_world.pl

And now, you're ready to run it!

See also:

Preliminaries - Files - Permissions

Tinkering with Perl is a free book that provides an introduction to programming in Perl, as well as a basic reference for things like foreach in Perl, if-then, and if-then-else, in addition to providing a glossary where you can find definitions for concatenate and other terms.

Tinkering with Perl may be one of the most popular offerings on this site, but it's not the only attraction. You can read a tongue-in-cheek Game Review: Meatspace, read an even more offbeat customer service survey (whether or not you actually fill it out), and spend a few minutes wishing your boss would read, The Administrator Who Cried, "Important!" (Not to mention that there are other things you can read here besides tech stuff, from Janra Ball: The Headache to The Spectacles.)

Read more...

Top

(Search & Sitemap) > Writing > Miscellaneous Nonfiction > Tinkering with Perl
Skip Back  Previous  13  14  15  16  17  18  19  20  21  22  Next  Skip Forward
Printer-Friendly Version