⟩ Write a script to reverse a string without using Perls built in function?
my $i;
my $str="hello";
my @str=split('',$str);
for($i=$#str;$i>=0;$i--)
{
print $str[$i];
}
=0;$i--) { print $str[$i]; }" />
my $i;
my $str="hello";
my @str=split('',$str);
for($i=$#str;$i>=0;$i--)
{
print $str[$i];
}
In an EVALUTE statement is the order of the WHEN clauses significant?
What is COMP SYNC?
What is SET TO TRUE all about, anyway?
What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default?
How do you define a sort file in JCL that runs the COBOL program?
What is the difference between a binary search and a sequential search? What are the pertinent COBOL commands?
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not ABEND. What is wrong with it?
What is the difference between a DYNAMIC and STATIC call in COBOL?
How do you sort in a COBOL program Give sort file definition, sort statement syntax and meaning?
How can I tell if a module is being called DYNAMICALLY or STATICALLY?