Wednesday, September 28, 2011

Perl iniciante (Perl beginner)


---------------------------------------------------------------------------------------------------------------------------------
Algumas estruturas básicas.
São úteis para aquelas pessoas que estão tendo o primeiro contato com a linguagem!

"Some basic structures.
They are useful for those people who are having their first contact with the language!"

---------------------------------------------------------------------------------------------------------------------------------

  • First step (edit)
Open any text editor, enter any example to follow.
  • Second step (execution)
This is simple, open a shell into the file directory and type:
$ perl namefile.pl


Or change the file permission, to facilitate the execution.
$chmod +x namefile.pl


To perform.
$./namefile.pl
  • Header of the script (good practice)
#!usr/bin/perl
use strict; 
use warnings;


Command line  =) 


$perl -e ' print "hell word =)";
result
hell word =)













continues soon ...

0 comentários:

Post a Comment