Questions tagged [perl]

Perl is a high-level programming language that comes installed by default in Ubuntu. It is well known for it's use for text manipulation, CGI scripts and it's huge community. You can find any modul and many tutorials on http://www.cpan.org/

Perl is optimised for scanning arbitrary text files and system administration. It has built-in extended regular expression matching and replacement, a data-flow mechanism to improve security with setuid scripts and is extensible via modules that can interface to C libraries.

327 questions
53
votes
1 answer

Building Full Perl Support in Ubuntu SDK

I am running Ubuntu v14.04, and after some effort, I have successfully installed the Ubuntu SDK. I need to use Perl + QML/Qt to develop a (potentially large) number of fully-functional apps through the Ubuntu SDK, which can then run "convergently"…
29
votes
1 answer

Using Modifiers of Perl-compatible Regex (PCRE) in grep

According to grep --help and man grep, we can use the -P option in order to interpret the pattern as a Perl regular expression (PCRE, to be precise), instead of the default POSIX basic regular expressions (BRE). In Perl language, various Modifiers…
25
votes
1 answer

How to set locale?

After a clean Ubuntu Server install, I get the following error when running 'perl'. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_CA.utf8" …
24
votes
5 answers

How can I merge files on a line by line basis?

cat file1 foo ice two cat file2 bar cream hundred Desired output: foobar icecream twohundred file1 and file2 will always have the same amount of lines in my scenario, in case that makes things easier.
TuxForLife
  • 1,333
22
votes
5 answers

How do I update/install Perl?

The Perl package is in /usr/bin and is an older version (5.12.4). The current stable release appears to be 5.14.2. How do I update this version? Root access is required, and I do not want to compile new binaries to install in a directory that is in…
Robert
  • 349
19
votes
3 answers

How do I install asciiquarium?

How do I install and run asciiquarium in Ubuntu? It seems kind of complicated, and I don't know how to compile source code.
15
votes
1 answer

What's the difference between the different "rename" commands?

Since Ubuntu 14.04 there are at least three rename commands: rename provided by the util-linux package, see man rename.ul rename provided by the perl package, see man prename rename provided by the rename package, see man…
dessert
  • 40,956
14
votes
5 answers

Unable to find ack in Ubuntu 17.10 repositories

I am trying to install ack via apt but it seems it's no longer available in the repos. Both: sudo apt install ack sudo apt install ack-grep give the following error: E: Package 'ack-grep' has no installation candidate Is it no longer available in…
user656869
13
votes
3 answers

How do I replace multiple lines with single word in file(inplace replace)?

Content of my filename file is as following(for example): My block of line starts from here START First line second line third line END and end to here for example. I want to replace block of lines between START and END with just a single word,…
αғsнιη
  • 36,350
12
votes
3 answers

Is there a Perl or Python script I can write which can minimize the Gnome terminal window?

I'm on Ubuntu 14.04 with the old-style GNOME setting from the GDM. (I don't like the new Unity interface.) Is there a way I can create a command that I can type in my terminal window to minimize it? It would be so awesome to simply type min and the…
Volomike
  • 2,305
11
votes
4 answers

CPAN vs. APT: Conflicts in versions?

I can't find the answer to this anywhere: Does a module installed via APT conflict with one installed via CPAN? Along with that question are these: Where do the installed CPAN modules live? Are they accessible globally or just to the installing…
Mei
  • 1,676
11
votes
2 answers

Perl 5.20.1 for Ubuntu 14.04

How to update to the latest perl in ubuntu 14.04 x64? Ive tried via apt and and cpan alredy and core wont update.
Medved
  • 111
  • 1
  • 1
  • 3
10
votes
1 answer

Is it possible to implement a "name" booking system using linux file permissions

I have a linux multi user server with 100+ users in /etc/passwd I would like to allow users to "book" / "reserve" a name of their liking (in this case a subdomain, but that details doesn't matter) I have created a directory called /reservations and…
10
votes
2 answers

Rename - what does "s//" vs "y//" mean?

The man page gives two examples: rename 's/\.bak$//' *.bak rename 'y/A-Z/a-z/' * So it's either s or y and then /replaceThis/withThis What does the leading s and y mean? Are there other options?
9
votes
1 answer

Trying to install CPAN

I am trying to use CPAN, but I am running into an issue. First I did sudo apt-get install perl. It says it's there. I typed cpan install automatically yes sudo which indicated as done, and I can get into cpan. I downloaded the .pl I wanted to use on…
user9447
  • 1,945
  • 5
  • 27
  • 41
1
2 3
21 22