Can anybody tell me what's wrong with this script?
@array = ("orange","green","blue","black","red");
@reversed = reverse(@array);
print "@reversed\n";
tenzinpalden 3 years ago
It works fine for me, nothing wrong.
bermnz 3 years ago
your awesome
onix9009 3 years ago
Haha, I couldn't tell that was a C there in cmp.
I thought it was an a first, and then I tried an o, and then a c.
1235096a 3 years ago
lousy tutorial.
if you could sort with just plain old sort, and reverse, why bother with the comparison operator?
An explanation for the USE of the comparison operator would be ideal.
thablackmarkit 3 years ago
is the exit statement necessary?
No, it is not.
However, I always indicate end of a script with "__END__"
badbehaviourTV 3 years ago
Hooray for these tutorials:)
beanturd13 3 years ago
It's the greatest tutorial I've ever seen! Many many thanks.
sususutestisi 3 years ago
thanks
Duff0549 3 years ago
Great tutorial, just as much is needed. Thanks loads. Please keep going..
MenonGopi 4 years ago 3
Super I am loving it. thanks.
ratkumchase101 4 years ago 3
Your welcome!
bermnz 4 years ago
Can anybody tell me what's wrong with this script?
@array = ("orange","green","blue","black","red");
@reversed = reverse(@array);
print "@reversed\n";
tenzinpalden 3 years ago
It works fine for me, nothing wrong.
bermnz 3 years ago
your awesome
onix9009 3 years ago
Haha, I couldn't tell that was a C there in cmp.
I thought it was an a first, and then I tried an o, and then a c.
1235096a 3 years ago
lousy tutorial.
if you could sort with just plain old sort, and reverse, why bother with the comparison operator?
An explanation for the USE of the comparison operator would be ideal.
thablackmarkit 3 years ago
is the exit statement necessary?
thablackmarkit 3 years ago
No, it is not.
However, I always indicate end of a script with "__END__"
badbehaviourTV 3 years ago
Hooray for these tutorials:)
beanturd13 3 years ago
It's the greatest tutorial I've ever seen! Many many thanks.
sususutestisi 3 years ago
thanks
Duff0549 3 years ago
Great tutorial, just as much is needed. Thanks loads. Please keep going..
MenonGopi 4 years ago 3
Super I am loving it. thanks.
ratkumchase101 4 years ago 3
Your welcome!
bermnz 4 years ago