Just random mumbling
Time pass to be honest,may work as a reference later,I am not sure.
Thursday, October 20, 2022
Sorting array of strings in perl
#defining and array
@fruits
=
(
'Rasberry'
,
'Orange'
,
'Apricot'
,
'Banana'
,
'Apple'
,
'Olive'
);
@fruits
=
sort
(
@fruits
);
#applying the sort function
print
(
"
@fruits
"
);
#printing the sorted array
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment