Re: Linux Mint
by Marshall (Canon) on Sep 01, 2016 at 07:12 UTC
|
Perl is a programming language. One that I am quite impressed with. Perl is not an application program like "Microsoft Word". What other programming languages do you know? I would recommend trying to implement some program that you know works in another language into Perl. Make an attempt and you will get some help.
Update:
Are you able to run the classic "hello world" program? Download this file as "hello.pl" and from the command prompt, type: perl hello.pl That should work on Unix or Windows.
#!usr/bin/perl
use strict;
use warnings;
print "Hello World!\n";
| [reply] [d/l] |
Re: Linux Mint
by RyuMaou (Deacon) on Sep 01, 2016 at 13:17 UTC
|
Welcome to the Monastery!
Your other post a couple of days ago was about the basics of learning Perl. Today I see you've posted that you installed Perl on Mint. It feels like you have a goal in mind with both Linux and Perl. Maybe sharing that goal will help people direct you to the best learning resources.
Also, if you don't have a project in mind, may I suggest finding one? I find the easiest way for me to learn something new is to have a clear goal or project that I'm working toward. Then, as I move toward solving that problem, I learn all kinds of things, some of which may apply to my project and some which won't. Either way, the end result I'm striving for provides me the on-going motivation to learn about the tools I've chosen. In fact, this is how I taught myself what Perl I know.
Perl is a powerful and versatile tool, but there's a lot to it and it will take some time to learn and use it well. Have patience and stick to it and you'll learn to love it as the rest of the monks here do. Don't give up! Once you get the basics, PerlMonks.org is a fantastic resource to help you answer specific questions about specific issues you may run into.
| [reply] |
Re: Linux Mint
by Anonymous Monk on Sep 01, 2016 at 02:26 UTC
|
| [reply] |
Re: Linux Mint
by planetscape (Chancellor) on Sep 01, 2016 at 15:05 UTC
|
Perhaps you would like to peruse our wonderful Tutorials. I'm certain you can find many topics of interest to a beginning programmer.
| [reply] |
Re: Linux Mint
by flowdy (Scribe) on Sep 01, 2016 at 06:53 UTC
|
What command initiates writing PERL?
A plain text editor of your choice. ;-)
Then, just open a shell and type perl /path/to/your/perl/file.pl and ENTER.
| [reply] [d/l] |
Re: Linux Mint
by davido (Cardinal) on Sep 01, 2016 at 16:08 UTC
|
Open an editor. On mint you probably have gedit, nano and vi included with the stock distribution. Type in some Perl code. Save it somewhere. Run it by typing "perl my-script-name".
If you are comfortable with Linux, you can add a shebang line to the top of the script, chmod it to executable, put it in a directory known to $PATH, and run it without explicitly invoking the Perl interpreter.
You will absolutely need to read perlintro, possibly followed by a Perl book such as Learning Perl.
| [reply] [d/l] [select] |
Re: Linux Mint
by karlgoethebier (Abbot) on Sep 02, 2016 at 12:18 UTC
|
| [reply] |
Re: Linux Mint
by morgon (Priest) on Sep 01, 2016 at 16:31 UTC
|
The initiation is not via a command but the Perl-mongers use an ancient (probably satanic) initiation ritual where they get drunk and sacrifice a goat to a deity they call Larry. | [reply] |
|
| [reply] |
|
My thing is, being able to use the program in the console to begin with. What command would I use to start editing and typing in my program?
I started programming with VSBASIC 1982. Not much since.
| [reply] |
|
|
|