Perl is also most being used by hacker and cracker to explore a system.
Perl's History
Perl is Practical Extraction and Report Language. which was created by Larry Wall on 1987.
Larry create perl to make the report process is more easy. But this program was well developed and become a programming language that most being used by system administrator, web developer, graphic programmer, network programmer, etc.
Installation Perl
In GNU/Linux Operating System, by default perl already being installed.
and for Windows Operating System, we can use application program named Padre and strawberry Perl.
We will skip for the installation since we will use Linux for the testing.
For the first example we will create a program "Hello, World".
We can use vi editor to create the file.
for the extension file we must give a named with .pl in back of file example abc.pl, test.pl, etc.
below is the example script
[elvin@TestBed$] vi hello.pl #!/usr/bin/perl -w print "Hello, World\n";
After we change the permission to execute the file
below is the result:
[elvin@TestBed$]./hello.pl Hello, World
or we can use perl command
[elvin@TestBed$]perl hello.pl Hello, World
0 comments:
Post a Comment