Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Linux Mint

by ichinyo (Novice)
on Sep 01, 2016 at 02:05 UTC ( [id://1170942]=perlquestion: print w/replies, xml ) Need Help??

ichinyo has asked for the wisdom of the Perl Monks concerning the following question:

I have Perl Installed. Now how do I start using it? What command initiates writing PERL? Thanks

Replies are listed 'Best First'.
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.

    Are you able to run the classic "hello world" program? Download this file as "" and from the command prompt, type: perl That should work on Unix or Windows.

    #!usr/bin/perl use strict; use warnings; print "Hello World!\n";
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, is a fantastic resource to help you answer specific questions about specific issues you may run into.
Re: Linux Mint
by Anonymous Monk on Sep 01, 2016 at 02:26 UTC
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/ and ENTER.

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.


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.


Re: Linux Mint
by karlgoethebier (Abbot) on Sep 02, 2016 at 12:18 UTC

    For some inspiration you might also take a look at rosettacode.

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

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.

      This procedure is not required by the artistic licence.

      perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
        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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1170942]
Approved by Athanasius
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-06-24 06:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.