Question: Create a Perl script named task2.pl that defines a subroutine conc. The subroutine takes two parameters and returns a string that is the concatenation of


Create a Perl script named task2.pl that defines a subroutine conc. The subroutine takes two parameters and returns a string that is the concatenation of the two parameters, but such that the two input parameters are ordered alphabetically in the resulting string, i.e., the input parameter that is first in the alphabetical order appears first in the output string of the joined parameters. E.g., conc('ccc','aaa') and conc('aaa', 'ccc') should both return: aaaccc Add the following lines to the script: print &conc l'aaa','ccc'); print " "; print &conc('ccc','aaa'); print " "; Create a Perl script named task1.pl that prints to the standard output 20 of the following lines: Use for a new line. The number 20 should be defined as a variable within the script. f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
