Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2023-01-30 19:23:40
Size: 1121
Comment:
Revision 10 as of 2025-03-04 03:20:54
Size: 1088
Comment: Shorten
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
'''`perl(1)`''' is a scripting language for Unix systems. It borrowed and built upon the syntax of Unix tools like [[Ed|ed]] and [[Awk|awk]], and in turn inspired the '''PCRE''' ('''Perl Compatible Regular Expressions''') and '''PCRE2''' libraries. '''`perl(1)`''' is a scripting language for Unix systems. It inspired the '''PCRE''' ('''Perl Compatible Regular Expressions''') and '''PCRE2''' libraries.
Line 51: Line 51:
[[https://man.archlinux.org/man/perl.1perl|perl(1perl)]]

Perl

perl(1) is a scripting language for Unix systems. It inspired the PCRE (Perl Compatible Regular Expressions) and PCRE2 libraries.


Example

print "Hello, World!\n";

Execute this file by running:

perl hello.pl

perl(1) is better known for its powerful yet obfuscated syntax, especially in the spirit of Bash one-liners. As an example (credit to Randal L. Schwartz):

perl <<<'print join " ", reverse split " ", "hacker, Perl another Just"'

Or more humorously (credit to Raymond Chen):

perl <<<'$_="krJhruaesrltre c a cnP,ohet";$_.=$1,print$2while s/(..)(.)//;'


Servers and Applications


See also

perldoc, the webhosted documentation

perl(1perl)


CategoryRicottone

Perl (last edited 2025-03-04 03:20:54 by DominicRicottone)