PDA

View Full Version : Wannabe hackers, script kiddies, read this (decent programmers can too)



SilverStream
10-31-2006, 03:40 PM
For you wannabe hackers out there, I will say, if you don't know programming, you are not a hacker. (editting a premade program DOES NOT count)

Ladies and gentlemen, Children of all ages, It is time we began this show. I think I will start with a SIMPLE computer programming language that can double as a WEB programming language! Hows that for amazing?

PERL!

Perl or Practical Extraction and Report Language, is used all over the world as a computer language, you even see .cgi web pages that are made in Perl. Perl is quite easy if you put your mind to learning it, its even easier to edit. Once you learn Perl, you will very easily be able to pick up on PHP and C. Perl is very similar to both. Perl is cross platform, meaning you can take it from windows to Linux to MAC, and back.

Heres a very simple calculator.

#!/usr/bin/perl
system("title Calculator");
system("color 05");
print('#############################');
print("\n");
print('######## Calculator #########');
print("\n");
print('## Written by SilverStream ##');
print("\n");
print('#############################');
print("\n");
print("Usage: Print your string, e.g. (5*4)-2/*+4* and hit enter\n");
while(*){
print("Input your string: ");
$equ=<STDIN>;
chomp($equ);
$equ=eval $equ;
print("The answer is $equ\n");
}

You need to download ActivePerl for windows to run it :D
Save it as Calculator.pl
Thus concludes our first lesson on Perl
If you have any questions, please refer to This Link (http://www.google.com)
SilverStream

Moonbat
10-31-2006, 06:32 PM
That calculator is good for people who know a bit about computer-done math. I don't think many people know * is for mutiplying, and if by accident they mistype something in a long equation, it will mess up. There should be set parameters for input.