n

californiamandrillΛογισμικό & κατασκευή λογ/κού

13 Δεκ 2013 (πριν από 3 χρόνια και 10 μήνες)

136 εμφανίσεις

B
IOINFORMATICS

Dr. Aladdin Hamwieh


Khalid Al
-
shamaa


Abdulqader Jighly

2010
-
2011

Practical

Getting started with Perl

Aleppo University

Faculty of technical engineering

Department of Biotechnology

B
ASICS


Command Line



Text File



Inputs & Outputs



Variables ($)



" " and ' '



New Line (;)



Comments (#)



#

first

test

print

"hi

everybody!

\
n
"
;

print

‘Your

name

is
:
'
;

$
name

=

<
STDIN
>
;

print

"Hi

$
v"
;

exit

0
;

F
IRST

C
ODE

B
ASIC

ARITHMETIC

OPERATORS


Operator


Function



+


Addition



-


Subtraction



*


Multiplication



/


Division



%


Modulus (remainder)



**


Exponent (to the power of)




++


Increment



--


Decrement


B
ASIC

ARITHMETIC

OPERATORS


$v =
4
;


$a =
2
+
3
;


print "
\
$a =
\
$a
\
n";


$a = $a
-
1
;


$a
-
=
1
;


$a
--
;


print "$a
\
n";



$x =
2
+
3
;


print '
\
$x = $x
\
n';





N
OTE

12
/
3
*
4
=
16


BUT


12
/(
4
*
3
)=
1


ORDER

OF

PRECEDENCE

Operator

**

/

*

%

+

-

T
RAINING

2
)
3
(
5
n
X
n




Input:


n


Output:


X

H
OMEWORK


Inputs:


Height (X)


Width (Y)


Outputs:


Perimeter


Area

X

Y

T
HANK

YOU