Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 3
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 06-17-2008, 08:30 AM   #1 (permalink)
 
Status: Account Temporarily Suspended
Join Date: Jun 2008
Location: My Computer Room
Posts: 158

Rep Power: 0 vampire is on a distinguished road



Arrow Perl- Basic Syntax

Firstly, Perl is quite important language to be known. I will split it in proper divisions to make you all understand easily. You will find it very much similar to C.

Arithmetic

+ (the sum of two numbers)
- ( the difference of two numbers)
* (the product of two numbers)
/ (the quotient of two numbers)
+= (add a number to a variable)
-= (subtract a number from a variable)
++ (increment a variable by 1)
-- (decrement a variable by 1)

String Manipulation

. (returns the concatenated, or combined, string of two smaller strings)
.= (appends a string onto a variable)

Logical Operations

They are True or False and can help in setting up program conditions.

&& ( true if the first and second are true)
| | (true if the first or the second are true)
! (true opposite)
== (true if the first is equal to the second)
>
<
>=
<=
!=

String Logical Operators

eq (true if first string is equal to the second)
ne (true if first string is NOT equal to the second)

Statement Blocks

(){}, the {} represents a statement block. Inside this can be 1 or more instructions. They can be used with flow control statements, such as if to allow your program to have logical flow.

Last edited by vampire; 06-17-2008 at 08:35 AM
vampire is offline Add Infraction for vampire   Reply With Quote
Old 06-17-2008, 08:32 AM   #2 (permalink)
 
Status: Account Temporarily Suspended
Join Date: Jun 2008
Location: My Computer Room
Posts: 158

Rep Power: 0 vampire is on a distinguished road



Default

Er.. If you think I missed anything. Do add it with your Reply
Thank you.
vampire is offline Add Infraction for vampire   Reply With Quote
Old 03-01-2009, 08:30 PM   #3 (permalink)
 
Status: People Love Me
Join Date: Feb 2009
Posts: 424

Rep Power: 56 Jenie0109 is on a distinguished road



Default

Strings:- You define a string using a dollar like this:

my $string = ‘some value’;
Jenie0109 is offline Add Infraction for Jenie0109   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2