Search
 
SCRIPT & CODE EXAMPLE
 

PERL

perl post condition

# Basic syntax:
statement if condition;
statement unless condition;

# Example usage:
my $x = 3;
my $y = 5;
# run the statement on the left only if the statement on the right is true
print "x is less than y
" if $x < $y;
--> x is less than y

# run the statement on the left only if the statement on the right is false
print "x is less than y
" unless $x > $y;
--> x is less than y
Comment

PREVIOUS NEXT
Code Example
Perl :: perl regex syntax 
Perl :: perl add to hash 
Perl :: read a file in perl 
Perl :: unique in perl 
Perl :: Perl (perl 5.28.1) sample 
Perl :: perl exit loop example 
Pascal :: pascal press any key to continue 
Pascal :: pascal sleep 
Pascal :: contoh dasar pascal 
Powershell :: Take ownership of a file 
Powershell :: ps where-object 
Gdscript :: godot yield idle frame 
Clojure :: folding at home linuxserver.io 
Cobol :: cobol 
Assembly :: custom color bootstrap buttonm 
Assembly :: assembly language loop example masm 
Assembly :: io mapped io and memory mapped io in 8085 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: list all node processes 
Javascript :: javascript radian to degree 
Javascript :: check react version terminal windows 
Javascript :: jquery only number allowed to 10 digit 
Javascript :: count number of checkboxes in html jquery 
Javascript :: javascript lowercase string 
Javascript :: regex date validation mm/dd/yyyy 
Javascript :: how to console.log formData 
Javascript :: js scroll to id 
Javascript :: sleep for 1 second 
Javascript :: jquery css add important 
Javascript :: dconf-editor install terminal 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =