Perl Operators   «Prev  Next»

Perl Test Operators - Exercise

Use the test operators


Objective: Write a program that prompts the user for a filename and then reports its size if it exists.
It is important to use chomp on the response before testing the response as a filename.
Enter your program in the text area below and then click the Submit button to submit your answer.