in reply to Re^3: Linux Mint
in thread Linux Mint

I use vim or vi. There's a learning curve to it though. pico is a very easy-to-use editor if you've never used a command-line editor before.

After you've opened up an empty file: vi script.pl or pico script.pl, write some code:

use warnings; use strict; my $tired = 0; if ($tired){ print "goodbye, world!\n"; } else { print "hello, world!\n"; }

Now, save the file, exit the editor and run the script directly from the command line:

perl script.pl

Replies are listed 'Best First'.
Re^5: Linux Mint
by Linicks (Scribe) on Sep 03, 2016 at 11:32 UTC

    pico is a bit dated now - I think most distro's have nano installed (Not ANOther editor) which is an enhanced clone of pico. I use it all the time and have done for about 12 years.

    Nick