Cat command in Linux
$ cat program.pl program2.pl
#!/usr/bin/perl
if( 2 ge 3) {
print "greater\n";
} else {
print "lesser\n";
}
#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;
#!/usr/bin/perl
if( 2 ge 3) {
print "greater\n";
} else {
print "lesser\n";
}
#!/usr/bin/perl
@arr = qw(1 2 3);
$ref = \@arr;
print ref $ref;
Example 3:
Step 1: Start
Step 2: Declare variables a,b and c.
Step 3: Read variables a,b and c.
Step 4: If a>b
If a>c
Display a is the largest number.
Else
Display c is the largest number.
Else
If b>c
Display b is the largest number.
Else
Display c is the greatest number.
Step 5: Stop
0 comments: