Perl
From Uncyclopedia, the content-free encyclopedia.
“WTF a camel as a mascot???”
“If you're having Perl problems I feel bad for you son; I've got 99 problems but a switch() ain't one.”
~ Jay-Z
Contents |
[edit] For starters
PERL is a language of computer domestic accommodation sold in IKEA raw with discount, no credit card, everywhere... and so for. PERL is not the same as "a perl", which refers to a perl with an a, and a is a letter that is used to compose words not in PERL, so a white shiny round object, a poem, beauty!, however! oh coooooool!..., however, seriously, they (do|don't)\? share some of the same elements, as said Larry in a meal.
PERL in this case is some sort of crappy computer code which makes no sense at all! A perl is a thing, often found in clams and stuff.. Nice to look at, not worth much though... I like them (Clams, not perls)
[edit] In the very beginning
The Pathetic Excuse for a Real Language, or PERL for brevity and nerdingly, is an uncommon language for programming ketchupeers and other world wide range incompatible devices. It was developed by an anonymous group of atlantean mainstream nutcases in 50 million BC as a 50-ton bra replacement. I had to believe it. Some people say, (and I don't take some people as seriously as I take myself) that special virtual machines with PERL are running on silver lapbottoms in Newcastle. When Milo Minderbinder decided to put it in the menu (syndicate could earn some money, selling Eggs for four cents a piece in Napoli), Nately's whore's kid sister wanted to kill him. In middle 1870's, ukrainian petrol company decided to launch first rocketship for Brian Eno, fueled by "PERL Cookbook" and made entirely of regular expressions. If this makes no-sense for you, umph...., then you need a PERL parser and a whole new regexp engine.
[edit] Famous PERL Coders
Sir Arthur Conan Doyle was the most famous PERL programmer, credited with such classics as "Greetings, inhabitants of this planet," (which later provided insight for Bill Gates' Hello World), and "Ninja Turtles: Turtles On Ice."
Larry Wall is another (in)famous PERL programmer though most agree that he is a reclusive cult leader bent on using PERL to take over the world. His cult followers claim he created the PERL language but evidence proves that it was indeed created by mainstream Chinese goats.
He was originally the descendant and heir of a long line of Jedi Bra Warriors entrusted with the proliferation and progress of Bill Gates; but owing to a rift with his Master Billygoat Fences over details of a cyanide party, Wall decided to break the rules of Bra Warriors and deleted Gates' login from the codebase and effectively took over Macrosnuff, the parent company of Microsoft.
Wall gained brief popularity with Christians in the early 1980s when he introduced religious keywords in PERL such as "bless," "confess," and "roflcopter." His popularity dropped, however, when Christianity went out of fashion.
Today, Wall is believed to be hiding in the Alps and is supported by his followers who are mostly tall, busty, blue-eyed, blonds.
Randal L. Schwartz
Less famous than Doyle but more infamous than Wall, little Randal was already known at the MIT for abusing other people's sessions and perusing any system's CPU he can lay his dirty sticky fingers on. This extreme aggressive behavior of him is said to be a remnant of a childhood trauma; one hot summer day in 1972 at the Gay Parade in Gdansk, Randal junior got stuck in a hula hoop trying to snatch someone's plate of lutefisk, he tripped over and accidentally swallowed all the beads and pearls that hung on his neck, along with the lutefisk. That day, the beads and pearls never came out and for the lutefisk, this is still under scientific investigation. Later on, he joined Wall's PERL sect. His intense joy and relief with the PERL cult was immediate. Nowadays, he still reminds this experience as "the most voluptuous stuffing a human can get" and gets very excited at the word "loop" and systematically transforms any loops into infinite loops. As he stated in the international press conference at the fall of the Wall of Berlin : "Loops make it like you are actually doing something on you..somebody's computar! It's the Hula Loop, the holy bead of PERL!".
He is the originator of PERL's motto : there is more than one way to do it but you'd better do it MY WAY!. Randal has co-authored the Lama book "Get rid of that PERL attitude in 24 hours" and is still very active in the PERL sect and is the fellow janitor of newsfroup news://comp.lang.PERL
[edit] Nowadays
Nowadays nothing is such clear, as it was before. Celtic Glasgow decided to skip every nth frame in singular mpeg file, but Zig preferred to set up the CGI bombs. Philips is German and stole my pen! (not necessarily a fact)
Over the years, PERL mutated more and more and finally reached a stage where the syntax changes all day long, it takes about 3 hour until the complete syntax has changed. It now combines the power of sh, the clarity of sed, and the performance of awk with the simplicity of C. This makes it rather hard to learn or write PERL, but Gordon Flash did an attempt to solve this Problem: the PERL-Utility-For-Future-Syntax (short PUFFS). The usage of this Tool requires very strict Project & Time Management in the area of Software Development, the workflow is as follows:
- Do the time-planing for the Project and figure out the exact time when the PERL code will be written
- Run PUFFS to generate the presumably PERL syntax of that time
- write your PERL code
- wait until time X
- check if PUFFS was right (the chance is currently 32%, but will increase with the next releases of PUFFS)
- if no go back to point 1
[edit] Sample PERL code
PERL is known to look like line noise, which makes it unreliable over a modem connection. Here is some sample PERL code:
- How to Cockfight in PERL
#!/usr/bin/PERL INFILE (mychicken, "http://www.old-store-run-by-an-immigrant.com/immigrant/pets/rooster.chicken"); $chicken = mychicken; if ($immigrants_mood == $pissed_off_for_stealing_chicken) { if ($immigrants_head != $bloody) { beat $immigrants_head with $nearest_hard_object; } } @nearest_club = ("people in club","$me","$chicken") if ($other_cockfighter =~ @nearest_club) { challenge $other_cockfighter; &chicken('peck_like_heck',"other_chicken") /// don't use $ !!!! :P &collect_money; if ($other_cockfighter beats up $me) { &chicken('peck_like_heck',"other_cockfighters_face"); /// don't use $ !!!! :P } } if (@cops =~ @nearest_club) { &get_the_crap_out_of_there; } if ($cops catch $me) { &do_jail_time; }
One of the basic rules of PERL is that there is never just one way to do anything and there's always a shorter way. Here is the same code re-written by a PERL master in just one line:
c8R";@d=split/(map{$P=$P[$f^ord/,"\nrekcah xinU/P,P);pipe"r$p"LREP rehtona tsuJ";$q*=2)+=$f=!fork;subp{@p{"r$p","u$p"}=(,"u$p";++$p;($p{$_})&6];$p{$_}=/ ^$P/
Or, sacrificing readability a bit, this can be rewritten simply as:
$/!~?^%;
While many languages can be used to encrypt data, PERL has something built-in that gives you encryption. Perl calls it "syntax". For example, the below code implements children's alphabets.
# nato.pl ##########################################
use strict;sub Interleave{local$.;map{substr($_,0,1)
=> @{$_[0]}[$.++]}@{$_[0]}}my %NATO_PHONETICS=>my%g=
Interleave (([qw(
Alpha Echo
Charlie Golf
Bravo Quebec
Foxtrot Kilo
Hotel Sierra
Uniform Juliet
India November
Whiskey Victor
Oscar Yankee
Tango Lima
Delta Zulu
Mike X-Ray
Romeo Papa )]));;
$\="\n";$_=(join$\,@ARGV or print(++$|,'> '),<STDIN>
);print join' ',grep{ $_ = $g{uc $_}|| $_} split //;
=usage: pass in msg on cmd line or input at prompt ;
[edit] Future
Windows Vista has been rumored to be a complete port of the original PERL Windows code into C. This would explain, well, everything.
[edit] Resources for PERL Programmers
One of most popular book for learning how to program in PERL is Programming PERL for Pre-schoolers. Its simple approach to teaching and pretty camel cartoon make it a standard for programmers of any age, especially the mentally retarded. Books continue to be the most common source for learning to Program PERL since many books on PERL are thick enough to knock yourself unconscious when realizing how poor the language and for that matter your life is.
Other programmers believe in looking to the Internet for learning how to program PERL, while this makes total sense, real programmers shun these people since they decided to spend hundreds upon hundreds just to learn how to program PERL better.
It is also common practice for many programmers to gather in small rooms to learn PERL as a group, not much is known about this practice by outsiders, but many professionals (like Tom Cruise) conclude that there must be something to do with either an orgy, or a virgin sacrifice.
[edit] Perl shortcomings
Like all other spoken languages, Perl has its problems. Throughout the years the cult of the Camel forbade some of the most serious of them to be fixed, because it would be considered treason to their God, and he would force them to use C for the rest of their wretched life. For example, the built-in join function for turning arrays into scalars acts too chaotically and the result is not always what the programmer desired. There are underground illegal coding sects, which developed fixes for problems such as this one. The following function fixes the behavior of join and is currently used by many Perl programming outcasts
sub orgy($@)
{
my $sep = shift(@_);
my $result;
while (@_) {
$result = $result . $sep . pop(@_) . $sep . shift(@_);
$result = shift(@_) .$sep. pop (@_) . $sep. $result;
}
return $result;
}
Running it on a array such as (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27) produces the desired result 14::12:16:10:18:8:20:6:22:4:24:2:26::27:1:25:3:23:5:21:7:19:9:17:11:15:13
[edit] WTF a Camel! LOL
Reasons people associate the camel and PERL Programmers:
- They are ugly
- They spit at people they don't like
- They spit at people they like
- They smell like spit
- They eat small un-attended children
- They drink in heavy amounts over long periods of time
- They hunger for human flesh every full moon
- They use CamelCase
It's obvious that the above list applies to not only PERL Programmers, but also Camels, and maybe Llamas too. To this day no other animal has been able to symbolize PERL programmers as well as the camel; its association with PERL dates back to 1900 when Bill O'Reilly was beaten to near death by a stick wielding camel.
| The cornerstones of the Internets |
| Internet | Internets | World Wide Web | The Network |
| Browsers |
| Internet Explorer | King Bowser Koopa | Opera | Maozilla | Mozilla Firefox |
| Languages |
| CSS | LifeScript | Perl | PHP | Java | JavaScript | VBScript | Internet-speak |
| Formats |
| Image file formats (GIF JPEG LIM PNG SVG) | HTML | SGML | XHTML | XML |
| Consortiums |
| W3C | Zann |
| Programming languages |
|
Assembler - BASIC - Brainfuck - C - C Flat - C# - C=C+1 - COBOL - Delphi - Fortran - Haskell - Java - JavaScript - Lithp - LOGO - Perl - PHP - Tcl - VBScript - Visual Basic |


