Question: Problem 8 Extract the comments. Comments begin with a # symbol and continue to the end of the line. They can contain any number of

Problem 8
Extract the comments. Comments begin with a # symbol and continue to the end of the line. They can contain any number of any characters, including none.
Some examples from the program:
#!/usr/bin/perl
# Convert CSV file with student info into a file
# that can be used to make accounts.
#
# Output is username, password, first name, last name
# Change array element separator to comma
# Print the whole array
# Return first initial, last name, all lower case
extract(r'#.*', "perl.txt")
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
in
---->1 extract(r'#.*', "perl.txt")
NameError: name 'extract' is not defined

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!